[wpt-sync] Sync PR 57125 - [SVG] Disallow Unitless Lengths in CSS Variable Substitution for `SVGLength`
Categories
(Core :: SVG, task, P4)
Tracking
()
People
(Reporter: wpt-sync, Unassigned)
References
()
Details
(Whiteboard: [wptsync downstream])
Sync web-platform-tests PR 57125 into mozilla-central (this bug is closed when the sync is complete).
PR: https://github.com/web-platform-tests/wpt/pull/57125
Details from upstream follow.
Divyansh Mangal <dmangal@microsoft.com> wrote:
[SVG] Disallow Unitless Lengths in CSS Variable Substitution for
SVGLengthVariable substitution occurs in the cascade phase, which does not
allow unitless lengths like "10","20" etc. In CL:7123806 we allowed
CSS substitution values likevar()forSVGLengthand there we
kept the SVG specific behaviour of allowing unitless lengths.Discussions with Gecko and WebKit teams clarified that unitless
lengths should remain valid only within SVG presentation attributes,
and should not be allowed during CSS variable substitution.In this CL, we remove the SVG specific quirk of allowing unitless
lengths in CSS substitution values by passing the document's parser
duringCSSUnparsedDeclarationValuecreation.Bug: 470897147
Change-Id: If7e69990c845642727e09c2956b07a8d78f0ebb4
Reviewed-on: https://chromium-review.googlesource.com/7274991
WPT-Export-Revision: b25a6c84552655ca28f57f1473d17c1c3137afcb
| Assignee | ||
Updated•1 day ago
|
Description
•