Closed Bug 1756776 Opened 2 years ago Closed 2 years ago

[wpt-sync] Sync PR 32950 - Support user action pseudo classes in non-subject :has()

Categories

(Core :: CSS Parsing and Computation, task, P4)

task

Tracking

()

RESOLVED FIXED
100 Branch
Tracking Status
firefox100 --- fixed

People

(Reporter: mozilla.org, Unassigned)

References

()

Details

(Whiteboard: [wptsync downstream])

Sync web-platform-tests PR 32950 into mozilla-central (this bug is closed when the sync is complete).

PR: https://github.com/web-platform-tests/wpt/pull/32950
Details from upstream follow.

Byungwoo Lee <blee@igalia.com> wrote:

Support user action pseudo classes in non-subject :has()

To support user action pseudo classes in non-subject :has(), the
dynamic restyle flags for :has() invalidation were moved from the
computed style extra fields to ElementSuperRareData.

This adds a byte to the ElementSuperRareData. To fill up the added
byte, the flags in the ElementRareData were also moved.

The computed style extra field flag for pseudo state change was also
moved to get the same advantage of filtering with the flag for non-
subject :has()

Bug: 669058
Change-Id: I00f892c0c494c31cce197345669b403bf63cf6b2
Reviewed-on: https://chromium-review.googlesource.com/3484616
WPT-Export-Revision: c48d73e1e717e711621d8adc5071c5b4e929e9c1

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

CI Results

Ran 12 Firefox configurations based on mozilla-central, and Firefox, Chrome, and Safari on GitHub CI

Total 1 tests and 2 subtests

Status Summary

Firefox

OK : 1
PASS: 1
FAIL: 1

Chrome

OK : 1
PASS: 1
FAIL: 1

Safari

OK : 1
PASS: 2

Links

Gecko CI (Treeherder)
GitHub PR Head
GitHub PR Base

Details

New Tests That Don't Pass

/css/selectors/invalidation/user-action-pseudo-classes-in-has.html
Invalidation with :focus, :focus-within, :focus-visible in :has(): FAIL (Chrome: FAIL, Safari: PASS)

Pushed by wptsync@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/590c0d188593
[wpt PR 32950] - Support user action pseudo classes in non-subject :has(), a=testonly
Status: NEW → RESOLVED
Closed: 2 years ago
Resolution: --- → FIXED
Target Milestone: --- → 100 Branch
You need to log in before you can comment on or make changes to this bug.