Applies styles from unrecognized <style media=> elements
Details:
rsvg doesn’t evaluate the media=
attribute on style
elements, an applies rules for all unrecognized media descriptors.
This may be a huge task to implement? A good start would be to ignore every style block for unrecognized media descriptors. It should at least recognize media="all"
(default) and media="screen"
.
Steps:
- Download testcase.svg.
rsync-convert testcase.svg -f png > result.png
Expected:
Green PNG.
Actual:
Red PNG.
Version:
rsvg-convert version 2.50.7
Specs:
https://www.w3.org/TR/SVG11/styling.html#StyleElementMediaAttribute