background color not rendered in viewers

Bug #1800536 reported by Robin Pecha
6
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?

Revision history for this message
Robin Pecha (robinpecha) wrote :

Workaround (as Sozi app does) is to read background color from svg pagecolor and style it externaly:
<style xmlns="http://www.w3.org/1999/xhtml">svg {background: rgba(56, 128, 131, 1); }</style>

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):
![Opacity 0](https://image.ibb.co/fARQ8L/image.png)

Opacity 255:
![Opacity 255](https://image.ibb.co/gvneJL/image.png)

http://sozi.baierouge.fr/community/d/65-change-background-of-svg/7

Revision history for this message
mray (mrayyyy) wrote :

Hi - thanks for reporting this bug, I've manually migrated it to Inkscape's new bug tracker on GitLab, and closed it here.

Please feel free to file new bugs about the issues you're seeing at http://inkscape.org/report.

Moved to: https://gitlab.com/inkscape/inbox/issues/286
Closed by: https://gitlab.com/mray

tags: added: bug-migration
Changed in inkscape:
status: New → Invalid
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.