[krita] [Bug 433220] Krita doesn't export vector layers as SVG properly
[email protected] Tue, 04 Aug 2026 21:46:09 +0000
| Newsgroups | gmane.comp.kde.devel.bugs |
|---|---|
| Message-ID | <[email protected]/> |
https://bugs.kde.org/show_bug.cgi?id=3D433220 [email protected] changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |kdebugs.emptier177@passmail | |.net --- Comment #2 from [email protected] --- Similarly text has a style tag with the CSS "font-size" property without a unit. The SVG specification allows "font-size" attributes without an explicit unit i.e. using user-units. But the value of a "style" attribute is CSS, so here a unit must be provided for the CSS "font-size" property. Because the unit is missing, Firefox and Chrome recover from the issue differently by assuming different units leading to differing visual results. I highly suggest the developers check output for an example project against: - for SVG: https://validator.w3.org/check - for CSS: https://jigsaw.w3.org/css-validator/validator - for file size improvements: https://jakearchibald.github.io/svgomg/ Example snippet: ``` <text id=3D"shape0" krita:textVersion=3D"3" transform=3D"translate(74.42920= 78071182, 86.0285648679678)" paint-order=3D"stroke fill markers" fill=3D"#000000" stroke-opacity=3D"0" stroke=3D"#000000" stroke-width=3D"0" stroke-linecap= =3D"square" stroke-linejoin=3D"bevel" style=3D"font-size: 12;white-space: pre-wrap;">Placeholder Text</text> ``` --=20 You are receiving this mail because: You are watching all bug changes.=