[wpt-sync] Sync PR 18858 - Do not simplify calc(0px + 0%) into 0px
Categories
(Core :: CSS Parsing and Computation, task, P4)
Tracking
()
Tracking | Status | |
---|---|---|
firefox71 | --- | fixed |
People
(Reporter: mozilla.org, Unassigned)
References
()
Details
(Whiteboard: [wptsync downstream])
Sync web-platform-tests PR 18858 into mozilla-central (this bug is closed when the sync is complete).
PR: https://github.com/web-platform-tests/wpt/pull/18858
Details from upstream follow.
Xiaocheng Hu <xiaochengh@chromium.org> wrote:
Do not simplify calc(0px + 0%) into 0px
Currently, when we create |Length| from calc(), and then create a
CSSPrimitiveValue from that |Length|, we may drop the percentage part
if it's zero.As discussed at https://github.com/w3c/csswg-drafts/issues/3482, zero
percentages in calcs should be preserved.Hence, this part ensures that percentage is perserved in calc(0px + 0%)
Note: we may want to preserve 0% in all cases, but that leads to many
test failures, so we leave the investigation to future instead.This is also preparation for crrev.com/c/1777025, which switches the
implementation of InterpolableLength to a math expression to support
min/max.Bug: 991672
Change-Id: I386f42a323079cce3d6ee545fa00ef289406e8bf
Reviewed-on: https://chromium-review.googlesource.com/1779721
WPT-Export-Revision: 163bc365b1a9ee019ca752bccfd175f1afb6cfbe
Assignee | ||
Updated•5 years ago
|
Assignee | ||
Comment 1•5 years ago
|
||
Pushed to try https://treeherder.mozilla.org/#/jobs?repo=try&revision=76ffbfe228f03c38326ec00fb7da1a3f4e9fe10a
Assignee | ||
Comment 2•5 years ago
|
||
Pushed to try https://treeherder.mozilla.org/#/jobs?repo=try&revision=4611075f9d03cd648b86badfbaf8f508cad64f82
Assignee | ||
Comment 3•5 years ago
|
||
Pushed to try (stability) https://treeherder.mozilla.org/#/jobs?repo=try&revision=4676a03c0766cef25bba62e9ebe8a7184fadf901
Assignee | ||
Comment 4•5 years ago
|
||
Ran 1 tests PASS : 1
Pushed by james@hoppipolla.co.uk: https://hg.mozilla.org/integration/mozilla-inbound/rev/203d6c814937 [wpt PR 18858] - Do not simplify calc(0px + 0%) into 0px, a=testonly
Comment 6•5 years ago
|
||
bugherder |
Description
•