Closed Bug 1691968 Opened 4 years ago Closed 4 years ago

[wpt-sync] Sync PR 27569 - SVG parsing allows calc() for <number>

Categories

(Core :: SVG, task, P4)

task

Tracking

()

RESOLVED FIXED
87 Branch
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: Ic20645d96b898c359d55eadfe902af0ac37a1dfa

Reviewed-on: https://chromium-review.googlesource.com/2685172
WPT-Export-Revision: bb99d2c5d5314fa0d00539ffbb8f402694490164

Component: web-platform-tests → SVG
Product: Testing → Core

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

GitHub PR Head
GitHub PR Base

Pushed by wptsync@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/b1f8c5dacdd7 [wpt PR 27569] - SVG parsing allows calc() for <number>, a=testonly
Pushed by wptsync@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/36b21c5655ef [wpt PR 27569] - SVG parsing allows calc() for <number>, a=testonly
Status: NEW → RESOLVED
Closed: 4 years ago
Resolution: --- → FIXED
Target Milestone: --- → 87 Branch
You need to log in before you can comment on or make changes to this bug.