[Bug]: JJ+ stopped rendering CSS when exporting to PNG (possibly other formats too)
Open
Nobody has claimed this yet.
bug
jointjs+
- Dominant language
- JavaScript
- Stars
- 5.4k
- Forks
- 893
- Avg merge
- 3d 3h
- Merged PRs (30d)
- 26
Description
Current versus expected behaviour
In JJ+3.x I was able to apply CSS styles to my elements and have them exported to PNG, but this doesn't seem to be working in JJ+4.x
Steps to reproduce
- Go to https://codesandbox.io/p/sandbox/jj4-raster-bug-y9v98v?file=%2Fsrc%2Findex.mjs%3A14%2C29
- Wait a couple of seconds and a popup will open (chrome might block the popup)
- Compare the image in the popup with the paper
Version
4.0.3
What browsers are you seeing the problem on?
Chrome, Safari
What operating system are you seeing the problem on?
Mac
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with the linked CodeSandbox reproduction and compare the exported popup image with the paper in Chrome or Safari. Trace the PNG export path and verify whether CSS styling is preserved, then check whether the same regression affects other export formats. Done means the reproduced diagram exports with its CSS styling intact.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript
- Domain
- computer-graphics, frontend
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 42/100