background color not rendered in viewers
Bug #1800536 reported by
Robin Pecha
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Inkscape |
Invalid
|
Undecided
|
Unassigned |
Bug Description
Hello, Im able to change background color of svg Document properties > background in Inkscape.
But this color is not rendered by other viewers (browser, image viewers, etc) only in Inkscape.
Workaround is to manualy edit file and put <style id="">svg { background: rgb(0, 0, 0); }</style>.
Is possible to put some gui in Inkscape to edit real background? Or to save background color from properites as correct css style to svg?
To post a comment you must log in.
Workaround (as Sozi app does) is to read background color from svg pagecolor and style it externaly: www.w3. org/1999/ xhtml">svg {background: rgba(56, 128, 131, 1); }</style>
<style xmlns="http://
And next problem - by default it also didnt work because you didnt notice opacity of background set to 0. Opacity value doesnt affect background color in Inkscape, in other apps is it rendered correctly and you dont notice it by first time:
Opacity 0 (default): /image. ibb.co/ fARQ8L/ image.png)
![Opacity 0](https:/
Opacity 255: /image. ibb.co/ gvneJL/ image.png)
![Opacity 255](https:/
http:// sozi.baierouge. fr/community/ d/65-change- background- of-svg/ 7