[wpt-sync] Sync PR 58960 - [SVG] Revert CSS width/height as presentation attributes on <use>
Categories
(Core :: SVG, task, P4)
Tracking
()
| Tracking | Status | |
|---|---|---|
| firefox151 | --- | fixed |
People
(Reporter: wpt-sync, Unassigned)
References
()
Details
(Whiteboard: [wptsync downstream])
Sync web-platform-tests PR 58960 into mozilla-central (this bug is closed when the sync is complete).
PR: https://github.com/web-platform-tests/wpt/pull/58960
Details from upstream follow.
Virali Purbey <viralipurbey@microsoft.com> wrote:
[SVG] Revert CSS width/height as presentation attributes on <use>
Per the SVG WG resolution from 2026-02-05 [1] and the spec update
[2], CSSwidthandheightproperties are honored as presentation
attributes only for \<rect>, \<image>, \<foreignObject>, and outer-SVG
elements. They are ignored by all other elements with width/height
attributes, including \<use>.This CL reverts the changes from [3] that added CSS width/height
support on \<use>. The \<symbol> related changes from [4] were already
reverted separately.Changes:
- Remove
CSSPropertyIDmapping for width/height onSVGUseElement.- Remove the
WidthAndHeightStylePropertiesOnUseAndSymboland
CollectWidthAndHeightAsPresentationAttributesForUseruntime flags.- Remove viewport override logic from \<use> parent style in
LayoutSVGViewportContainer.- Mark the
kUseCssSizingPropertiesuse counter as obsolete.- Update WPT
presentation-attributes-special-casesto remove use
from tested elements.- Update
use-*-inline-cssreftests to verify CSS width/height is
ignored on \<use> (attribute values are used instead).- Delete redundant
use-symbol-inline-css-003.svg(covered by
existinguse-symbol-dimensions-overridetests).[1] https://www.w3.org/2026/02/05-svg-minutes.html#cba7
[2] https://github.com/w3c/svgwg/pull/1059
[3] https://chromium-review.googlesource.com/c/chromium/src/+/6646865
[4] https://chromium-review.googlesource.com/c/chromium/src/+/6646866Bug: 41413321, 40377919
Change-Id: I8514a582b396ed38bae50ab15d2769c7ec83ca22
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/7719827
Commit-Queue: Virali Purbey \<viralipurbey@microsoft.com>
Reviewed-by: Fredrik Söderquist \<fs@opera.com>
Reviewed-by: Divyansh Mangal \<dmangal@microsoft.com>
Cr-Commit-Position: refs/heads/main@{#1609462}
| Assignee | ||
Updated•3 months ago
|
| Assignee | ||
Comment 1•3 months ago
|
||
| Assignee | ||
Comment 2•3 months ago
|
||
CI Results
Ran 11 Firefox configurations based on mozilla-central, and Firefox, Chrome, and Safari on GitHub CI
Total 115 tests and 10 subtests
Status Summary
Firefox
OK : 1[GitHub] 12[Gecko-android-em-14-x86_64-debug-geckoview, Gecko-android-em-14-x86_64-lite-opt-geckoview, Gecko-android-em-14-x86_64-opt-geckoview, Gecko-linux2404-64-debug, Gecko-linux2404-64-opt, Gecko-windows11-32-24h2-debug, Gecko-windows11-32-24h2-opt, Gecko-windows11-64-24h2-debug, Gecko-windows11-64-24h2-opt]
PASS: 2[Gecko-linux2204-64-wayland-debug, Gecko-linux2204-64-wayland-opt] 28[GitHub] 315[Gecko-windows11-32-24h2-debug, Gecko-windows11-32-24h2-opt] 378[Gecko-android-em-14-x86_64-debug-geckoview, Gecko-android-em-14-x86_64-lite-opt-geckoview, Gecko-android-em-14-x86_64-opt-geckoview, Gecko-linux2404-64-debug, Gecko-linux2404-64-opt, Gecko-windows11-64-24h2-debug, Gecko-windows11-64-24h2-opt]
FAIL: 1[GitHub] 17[Gecko-windows11-32-24h2-debug, Gecko-windows11-32-24h2-opt] 53[Gecko-android-em-14-x86_64-debug-geckoview, Gecko-android-em-14-x86_64-lite-opt-geckoview, Gecko-android-em-14-x86_64-opt-geckoview] 54[Gecko-linux2404-64-debug, Gecko-linux2404-64-opt, Gecko-windows11-64-24h2-debug, Gecko-windows11-64-24h2-opt]
Chrome
OK : 1
PASS: 26
FAIL: 3
Safari
OK : 1
PASS: 21
FAIL: 8
Links
Gecko CI (Treeherder)
GitHub PR Head
GitHub PR Base
Details
Firefox-only Failures
- /svg/styling/presentation-attributes-special-cases.html [wpt.fyi]
- x, y, width, and height presentation attributes supported on svg element:
FAILlinked bug:Bug 1802090
- x, y, width, and height presentation attributes supported on svg element:
New Tests That Don't Pass
- /svg/struct/reftests/use-external-resource-with-revalidation.tentative.html [wpt.fyi]:
SKIP - /svg/struct/reftests/nested-svg-through-display-contents.svg [wpt.fyi]:
FAIL - /svg/struct/reftests/use-event-handler-no-loss-of-events.html [wpt.fyi]:
FAIL[Gecko-linux2404-64-debug,Gecko-linux2404-64-opt,Gecko-windows11-64-24h2-debug,Gecko-windows11-64-24h2-opt],SKIP[Gecko-android-em-14-x86_64-debug-geckoview,Gecko-android-em-14-x86_64-lite-opt-geckoview,Gecko-android-em-14-x86_64-opt-geckoview] - /svg/struct/reftests/use-external-html-resource-with-doctype.html [wpt.fyi]:
FAIL - /svg/struct/reftests/use-external-html-resource.html [wpt.fyi]:
FAIL - /svg/struct/reftests/use-external-resource-target-pseudo-002.html [wpt.fyi]:
FAIL - /svg/struct/reftests/use-external-svg-resource-no-fragment-id.html [wpt.fyi]:
FAIL - /svg/styling/css-var-on-length-attributes-quirk.html [wpt.fyi]:
FAIL - /svg/styling/nested-svg-sizing-auto.tentative.svg [wpt.fyi]:
FAIL - /svg/styling/nested-svg-sizing-calc-size.tentative.svg [wpt.fyi]:
FAIL - /svg/styling/nested-svg-sizing-calc.tentative.svg [wpt.fyi]:
FAIL - /svg/styling/nested-svg-sizing-ems.tentative.svg [wpt.fyi]:
FAIL - /svg/styling/nested-svg-sizing-fit-content.tentative.svg [wpt.fyi]:
FAIL - /svg/styling/nested-svg-sizing-inherit.tentative.svg [wpt.fyi]:
FAIL - /svg/styling/nested-svg-sizing-initial.tentative.svg [wpt.fyi]:
FAIL - /svg/styling/nested-svg-sizing-max-content.tentative.svg [wpt.fyi]:
FAIL - /svg/styling/nested-svg-sizing-min-content.tentative.svg [wpt.fyi]:
FAIL - /svg/styling/nested-svg-sizing-percent.tentative.svg [wpt.fyi]:
FAIL - /svg/styling/nested-svg-sizing-rems.tentative.svg [wpt.fyi]:
FAIL - /svg/styling/nested-svg-sizing-stretch.tentative.svg [wpt.fyi]:
FAIL - /svg/styling/nested-svg-sizing-viewport-units-with-ICB.tentative.html [wpt.fyi]:
FAIL - /svg/styling/nested-svg-sizing-viewport-units.tentative.svg [wpt.fyi]:
FAIL - /svg/styling/nested-svg-sizing-with-use.svg [wpt.fyi]:
FAIL - /svg/styling/nested-svg-sizing.svg [wpt.fyi]:
FAIL - /svg/styling/use-element-attr-selector-transition.tentative.html [wpt.fyi]:
FAIL - /svg/styling/use-element-class-selector-transition.tentative.html [wpt.fyi]:
FAIL - /svg/styling/use-element-id-selector-transition.tentative.html [wpt.fyi]:
FAIL - /svg/styling/use-element-transitions-dom-mutation.tentative.html [wpt.fyi]:
FAIL - /svg/styling/use-element-transitions.tentative.html [wpt.fyi]:
FAIL - /svg/styling/use-element-web-animations.html [wpt.fyi]:
FAIL - /svg/styling/css-linked-parameters/css-linked-parameters-precedence-1.html [wpt.fyi]:
FAIL - /svg/styling/css-linked-parameters/css-linked-parameters-precedence-2.html [wpt.fyi]:
FAIL - /svg/styling/css-linked-parameters/img-with-linked-parameters-1.html [wpt.fyi]:
FAIL - /svg/styling/css-linked-parameters/img-with-linked-parameters-2.html [wpt.fyi]:
FAIL - /svg/styling/css-linked-parameters/img-with-url-fragment-identifiers-1.html [wpt.fyi]:
FAIL - /svg/styling/css-linked-parameters/img-with-url-fragment-identifiers-2.html [wpt.fyi]:
FAIL - /svg/styling/css-linked-parameters/img-with-url-function-1.html [wpt.fyi]:
FAIL - /svg/styling/css-linked-parameters/img-with-url-function-2.html [wpt.fyi]:
FAIL - /svg/styling/css-var-dom-interface.html [wpt.fyi]
- SVGLength DOM interface with CSS variable containing px unit:
FAIL - SVGLength DOM interface with CSS variable containing number:
FAIL - SVGLength DOM interface with CSS variable containing percentage:
FAIL - SVGLength DOM interface with invalid CSS variable:
FAIL - SVGLength DOM interface methods with CSS variables:
FAIL - SVGLength.convertToSpecifiedUnits with CSS variables:
FAIL - SVGLength should handle detached elements gracefully for CSS variables:
FAIL - SVGLength should handle standalone lengths gracefully for CSS variables:
FAIL
- SVGLength DOM interface with CSS variable containing px unit:
- /svg/styling/presentation-attributes-irrelevant.html [wpt.fyi]
- alignment-baseline presentation attribute supported on an irrelevant element:
FAIL - text-overflow presentation attribute supported on an irrelevant element:
FAIL
- alignment-baseline presentation attribute supported on an irrelevant element:
- /svg/styling/presentation-attributes-relevant.html [wpt.fyi]
- alignment-baseline presentation attribute supported on a relevant element:
FAIL - text-overflow presentation attribute supported on a relevant element:
FAIL
- alignment-baseline presentation attribute supported on a relevant element:
- /svg/styling/presentation-attributes-special-cases.html [wpt.fyi]
- x, y, width, and height presentation attributes supported on svg element:
FAIL(Chrome:PASS, Safari:PASS)
- x, y, width, and height presentation attributes supported on svg element:
- /svg/styling/presentation-attributes-unknown.html [wpt.fyi]
- alignment-baseline presentation attribute supported on an unknown SVG element:
FAIL - text-overflow presentation attribute supported on an unknown SVG element:
FAIL
- alignment-baseline presentation attribute supported on an unknown SVG element:
- /svg/styling/required-properties.svg [wpt.fyi]
- Property "glyph-orientation-vertical" is supported:
FAIL - Property "text-align-all" is supported:
FAIL
- Property "glyph-orientation-vertical" is supported:
Tests Disabled in Gecko Infrastructure
- /svg/struct/reftests/use-external-resource-with-revalidation.tentative.html [wpt.fyi]:
SKIP - /svg/struct/reftests/use-event-handler-no-loss-of-events.html [wpt.fyi]:
FAIL[Gecko-linux2404-64-debug,Gecko-linux2404-64-opt,Gecko-windows11-64-24h2-debug,Gecko-windows11-64-24h2-opt],SKIP[Gecko-android-em-14-x86_64-debug-geckoview,Gecko-android-em-14-x86_64-lite-opt-geckoview,Gecko-android-em-14-x86_64-opt-geckoview]
https://hg.mozilla.org/mozilla-central/rev/48c8ef030ca4
https://hg.mozilla.org/mozilla-central/rev/1db9355dfa0d
Description
•