Length units should be case-insensitive
types-basic-02-f.svg
from the SVG 1.1 test suite fails, because we parse units like 42PX
as an error.
Note that SVG1.1 and SVG2 differ for this:
-
SVG1.1 - for properties, "The unit identifier may be in lower (recommended) or upper case.". For presentation attributes, e.g.
<path stroke-width="42px"/>
, "The unit identifier, if present, must be in lower case". -
SVG2 - properties are still case-insensitive, but for presentation attributes, look for the Annotation 1: "SVG 2 Requirement: consider relaxing case sensitivity of presentation attribute values.". So did they turn them case-insensitive as well?
This is the relevant code in librsvg; one could replace that match
with match_ignore_ascii_case!
from the cssparser crate.