[wpt-sync] Sync PR 27569 - SVG parsing allows calc() for <number>
Categories
(Core :: SVG, task, P4)
Tracking
()
Tracking | Status | |
---|---|---|
firefox87 | --- | fixed |
People
(Reporter: wpt-sync, Unassigned)
References
()
Details
(Whiteboard: [wptsync downstream])
Sync web-platform-tests PR 27569 into mozilla-central (this bug is closed when the sync is complete).
PR: https://github.com/web-platform-tests/wpt/pull/27569
Details from upstream follow.
b'Rune Lillesveen <futhark@chromium.org>' wrote:
SVG parsing allows calc() for <number>
The SVG spec says[1] to allow \<number> when parsing values for
presentation attributes to allow unitless lengths for things like
font-size in the attribute.The CSS specification says calc() with numbers is allowed wherever
\<number> is allowed. Blink is the only browser to allow calc()
expressions for \<number>. It is possible we should change that, but as
long as we accept it at parse time, we should handle it when applying it
to the ComputedStyle.This CL computes font-size lengths for calc() expressions with numbers.
[1] https://svgwg.org/svg2-draft/types.html#syntax
Bug: 1172750
Change-Id: Ic20645d96b898c359d55eadfe902af0ac37a1dfaReviewed-on: https://chromium-review.googlesource.com/2685172
WPT-Export-Revision: bb99d2c5d5314fa0d00539ffbb8f402694490164
Assignee | ||
Updated•4 years ago
|
Assignee | ||
Comment 1•4 years ago
|
||
Assignee | ||
Comment 2•4 years ago
|
||
CI Results
Ran 0 Firefox configurations based on mozilla-central, and Firefox, Chrome, and Safari on GitHub CI
Total 1 tests
Status Summary
Firefox
PASS: 1
Chrome
PASS: 1
Safari
PASS: 1
Links
Comment 5•4 years ago
|
||
bugherder |
Description
•