Closed Bug 2099020 Opened 5 days ago Closed 2 days ago

[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)

task

Tracking

()

RESOLVED FIXED
163 Branch
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()] Support ua-early- random cache names

 &lt;div style=&apos;animation-name: ident(&quot;a&quot; random(1, 1000000)), ident(&quot;b&quot; random(1, 1000000))&apos;&gt;&lt;/div&gt;

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>

Component: web-platform-tests → CSS Parsing and Computation
Product: Testing → Core

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

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)
  • /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)
You need to log in before you can comment on or make changes to this bug.