NEW303898
[WPT] container-relative units for SVG fails two tests.
https://bugs.webkit.org/show_bug.cgi?id=303898
Summary [WPT] container-relative units for SVG fails two tests.
Karl Dubost
Reported 2025-12-09 18:47:29 PST
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" https://wpt.fyi/results/css/css-conditional/container-queries/container-units-svglength.html http://wpt.live/css/css-conditional/container-queries/container-units-svglength.html
Attachments
Ahmad Saleem
Comment 1 2025-12-09 20:53:18 PST
FIXME: https://searchfox.org/wubkat/rev/c887d10d61230f23a647b1d8fed8a7faa1b022d5/Source/WebCore/svg/SVGLengthValue.cpp#90 ``` static Variant<CSS::Number<>, CSS::LengthPercentage<>> createVariantForLengthType(float value, SVGLengthType lengthType) { if (lengthType == SVGLengthType::Number) return CSS::Number<>(value); if (lengthType == SVGLengthType::Unknown) { // For unknown types (like container units), fall back to Number // FIXME: Add support for container units return CSS::Number<>(value); } return CSS::LengthPercentage<>(svgLengthTypeToCSSLengthUnit(lengthType), value); } ```
Radar WebKit Bug Importer
Comment 2 2025-12-16 18:48:12 PST
Note You need to log in before you can comment on or make changes to this bug.