[wpt-sync] Sync PR 65846 - WebKit export of https://bugs.webkit.org/show_bug.cgi?id=333268
Categories
(Core :: CSS Parsing and Computation, task, P4)
Tracking
()
| Tracking | Status | |
|---|---|---|
| firefox163 | --- | fixed |
People
(Reporter: wpt-sync, Unassigned)
References
(Blocks 1 open bug, )
Details
(Whiteboard: [wptsync downstream])
Sync web-platform-tests PR 65846 into mozilla-central (this bug is closed when the sync is complete).
PR: https://github.com/web-platform-tests/wpt/pull/65846
Details from upstream follow.
Tim Nguyen <ntim@apple.com> wrote:
WebKit export of https://bugs.webkit.org/show_bug.cgi?id=333268
WebKit export from bug: [<!---->css-<!---->values-<!---->5 random(<!---->)<!---->]<!----> Support `<!---->ua-<!---->early-<!---->`<!----> random cache names
<pre>
[css-values-5 random()] Supportua-early-random cache names<div style='animation-name: ident("a" random(1, 1000000)), ident("b" random(1, 1000000))'></div>The two idents should get different numbers, but they get the same one on
trunk.A random() evaluated during substitution should get an early random cache
name, ua-early-PROPERTY[-INDEX], with its own index across the property:
<a href="https://drafts.csswg.org/css-values-5/#random-caching">https://drafts.csswg.org/css-values-5/#random-caching</a>
On trunk, each ident() restarted the index and keyed it like a plain random(),
and typed attr() re-parsed its random() functions as ordinary ones.Mark early random keys and count them across the substitution. Serialize them
as ua-early- idents so typed attr() round-trips them, and accept those idents,
and custom property names, in <random-key>. Also keep failed syntax
alternatives from using up random() indexes, and reject random() in typed
attr() in @container style() values, like random-item().WebKit-Bug: <a href="https://bugs.webkit.org/show_bug.cgi?id=333268">https://bugs.webkit.org/show_bug.cgi?id=333268</a>
</pre>
| Assignee | ||
Updated•5 days ago
|
| Assignee | ||
Comment 1•5 days ago
|
||
Pushed to try (stability) https://treeherder.mozilla.org/jobs?repo=try&landoInstance=lando-prod-2025&landoCommitID=127811
| Assignee | ||
Comment 2•4 days ago
|
||
CI Results
Ran 0 Firefox configurations based on mozilla-central, and Firefox, Chrome, and Safari on GitHub CI
Total 3 tests and 4 subtests
Status Summary
Firefox
OK : 3
PASS: 12
FAIL: 10
Chrome
OK : 3
PASS: 18
FAIL: 4
Safari
OK : 3
PASS: 13
FAIL: 9
Links
Gecko CI (Treeherder)
GitHub PR Head
GitHub PR Base
Details
Firefox-only Failures
- /css/css-values/random-in-container-query.tentative.html [wpt.fyi]
- random() should be disallowed in @container style() query:
FAIL - random() in var() should be disallowed in @container style() query:
FAIL - comparing custom property to random() should be disallowed in @container style() query range:
FAIL - comparing custom property with random() value should be disallowed in @container style() query range:
FAIL - comparing two random() values should be disallowed in @container style() query range:
FAIL - comparing custom properties to random() should be disallowed in @container style() query range:
FAIL - random() in ident() should be disallowed in @container style() query:
FAIL
- random() should be disallowed in @container style() query:
New Tests That Don't Pass
- /css/css-values/random-in-container-query.tentative.html [wpt.fyi]
- random() should be disallowed in @container style() query:
FAIL(Chrome:PASS, Safari:PASS) - random() in var() should be disallowed in @container style() query:
FAIL(Chrome:PASS, Safari:PASS) - comparing custom property to random() should be disallowed in @container style() query range:
FAIL(Chrome:PASS, Safari:PASS) - comparing custom property with random() value should be disallowed in @container style() query range:
FAIL(Chrome:PASS, Safari:PASS) - comparing two random() values should be disallowed in @container style() query range:
FAIL(Chrome:PASS, Safari:PASS) - comparing custom properties to random() should be disallowed in @container style() query range:
FAIL(Chrome:PASS, Safari:PASS) - random() in typed attr() should be disallowed in @container style() query:
FAIL(Chrome:PASS, Safari:FAIL) - random() in ident() should be disallowed in @container style() query:
FAIL(Chrome:PASS, Safari:PASS)
- random() should be disallowed in @container style() query:
- /css/css-values/random-ua-ident-custom-property.html [wpt.fyi]
- ua---c-1 names the 1st random() in --c when its syntax has several types:
FAIL(Chrome:FAIL, Safari:FAIL) - ua-early---c-1 names the 1st random() in a typed attr() whose syntax has several types:
FAIL(Chrome:FAIL, Safari:FAIL)
- ua---c-1 names the 1st random() in --c when its syntax has several types:
Comment 4•2 days ago
|
||
| bugherder | ||
https://hg.mozilla.org/mozilla-central/rev/8732f908301b
https://hg.mozilla.org/mozilla-central/rev/c068c839f70a
Description
•