[wpt-sync] Sync PR 45201 - Limit use of calc-size() within other expression contexts.
Categories
(Core :: CSS Parsing and Computation, task, P4)
Tracking
()
| Tracking | Status | |
|---|---|---|
| firefox126 | --- | fixed |
People
(Reporter: wpt-sync, Unassigned)
References
()
Details
(Whiteboard: [wptsync downstream])
Sync web-platform-tests PR 45201 into mozilla-central (this bug is closed when the sync is complete).
PR: https://github.com/web-platform-tests/wpt/pull/45201
Details from upstream follow.
L. David Baron <dbaron@chromium.org> wrote:
Limit use of calc-size() within other expression contexts.
This restricts the use of calc-size() to the toplevel expression and to
the basis of another calc-size() expression. (It should eventually also
be allowed in mix() when we support that.) It implements the
restriction in the same way that the spec describes it: based on the
idea that its type is not a length.Bug: 313072
Change-Id: I157a16fee67674511f22f7d604c259c2230ab79cReviewed-on: https://chromium-review.googlesource.com/5367589
WPT-Export-Revision: 2a0cc51ee7b20178ee70d901329a7e4634561dcc
| Assignee | ||
Updated•2 years ago
|
| Assignee | ||
Comment 1•2 years ago
|
||
| Assignee | ||
Comment 2•2 years ago
|
||
CI Results
Ran 9 Firefox configurations based on mozilla-central, and Firefox, Chrome, and Safari on GitHub CI
Total 1 tests and 57 subtests
Status Summary
Firefox
OK : 1
PASS: 39
FAIL: 18
Chrome
OK : 1
PASS: 39
FAIL: 18
Safari
OK : 1
PASS: 39
FAIL: 18
Links
Gecko CI (Treeherder)
GitHub PR Head
GitHub PR Base
Details
New Tests That Don't Pass
- /css/css-values/calc-size/calc-size-parsing.tentative.html [wpt.fyi]
- e.style['width'] = "calc-size(auto, size)" should set the property value:
FAIL(Chrome:PASS, Safari:FAIL) - e.style['min-width'] = "calc-size(auto, size)" should set the property value:
FAIL(Chrome:PASS, Safari:FAIL) - e.style['height'] = "calc-size(auto, size)" should set the property value:
FAIL(Chrome:PASS, Safari:FAIL) - e.style['min-height'] = "calc-size(auto, size)" should set the property value:
FAIL(Chrome:PASS, Safari:FAIL) - e.style['width'] = "calc-size(fit-content, size)" should set the property value:
FAIL(Chrome:PASS, Safari:FAIL) - e.style['height'] = "calc-size(min-content, size * 2)" should set the property value:
FAIL(Chrome:PASS, Safari:FAIL) - e.style['max-width'] = "calc-size(max-content, size / 2)" should set the property value:
FAIL(Chrome:PASS, Safari:FAIL) - e.style['max-height'] = "calc-size(fit-content, 30px + size / 2)" should set the property value:
FAIL(Chrome:PASS, Safari:FAIL) - e.style['width'] = "calc-size(fit-content, 50% + size / 2)" should set the property value:
FAIL(Chrome:PASS, Safari:FAIL) - e.style['width'] = "calc-size(any, 25em)" should set the property value:
FAIL(Chrome:PASS, Safari:FAIL) - e.style['width'] = "calc-size(any, 40%)" should set the property value:
FAIL(Chrome:PASS, Safari:FAIL) - e.style['width'] = "calc-size(any, 50px + 30%)" should set the property value:
FAIL(Chrome:PASS, Safari:FAIL) - e.style['width'] = "calc-size(10px, sign(size) * size)" should set the property value:
FAIL(Chrome:PASS, Safari:FAIL) - e.style['width'] = "calc-size(30px, 25em)" should set the property value:
FAIL(Chrome:PASS, Safari:FAIL) - e.style['width'] = "calc-size(calc-size(any, 30px), 25em)" should set the property value:
FAIL(Chrome:PASS, Safari:FAIL) - e.style['width'] = "calc-size(calc-size(2in, 30px), 25em)" should set the property value:
FAIL(Chrome:PASS, Safari:FAIL) - e.style['width'] = "calc-size(calc-size(min-content, 30px), 25em)" should set the property value:
FAIL(Chrome:PASS, Safari:FAIL) - e.style['width'] = "calc-size(calc-size(min-content, size), size)" should set the property value:
FAIL(Chrome:PASS, Safari:FAIL)
- e.style['width'] = "calc-size(auto, size)" should set the property value:
Comment 4•2 years ago
|
||
| bugherder | ||
https://hg.mozilla.org/mozilla-central/rev/e5f8d9396cfc
https://hg.mozilla.org/mozilla-central/rev/1949fb26acce
Description
•