-
Notifications
You must be signed in to change notification settings - Fork 219
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
background-color
doesn't work
#811
Comments
There is no |
Ah, right, so it's a CSS-only property and that's why it probably works in all other browsers. Would you consider having support for this this though, given that it seemingly is used to some degree? I think it should be pretty straight-forward to implement, we could simply add an optional |
I think we can simply add a root rectangle with a fill color from |
I thought about that, too, but I think having this separate from the main tree would be better, because each client can that do with that information what they want. For example, let's say you are developing an SVG viewer based on usvg, if we add a root rectangle than only everything within the bounding box of the SVG will be in that color while the rest will be white, while if we store that information separately than the client application can ensure that the whole canvas is in that color, similar to how it happens in web browsers. |
The whole point of |
Originally reported at: typst/typst#4867
File:
resvg
output:Chrome output:
Not sure if it's a bug or just not been implemented yet.
The text was updated successfully, but these errors were encountered: