RESOLVED FIXED253937
Container query units should work inside SVG attributes
https://bugs.webkit.org/show_bug.cgi?id=253937
Summary Container query units should work inside SVG attributes
Attachments
Radar WebKit Bug Importer
Comment 1 2023-03-14 23:25:00 PDT
Antti Koivisto
Comment 2 2023-08-23 16:28:57 PDT
Currently our SVGLength code only supports unit types defined in SVGLengthType enum: enum class SVGLengthType : uint8_t { Unknown = 0, Number, Percentage, Ems, Exs, Pixels, Centimeters, Millimeters, Inches, Points, Picas }; Per spec (https://svgwg.org/svg2-draft/types.html#InterfaceSVGLength) other types can be supported too. This is not a container unit specific issue but a general SVG issue.
Karl Dubost
Comment 3 2025-12-09 18:48:57 PST
This link doesn't exist anymore. https://wpt.fyi/results/css/css-contain/container-queries/container-units-svglength.html It is now at: https://wpt.fyi/results/css/css-conditional/container-queries/container-units-svglength.html The container query units now work inside SVG attributes. There are still two FAILs but this seems to be a different bug. calc() with container-relative units can be resolved FAIL message: assert_equals: expected 35 but got 0 Can modify value with container-relative units FAIL message: assert_equals: expected "80" but got "40cqw" Opening a followup Bug 303898
Note You need to log in before you can comment on or make changes to this bug.