Closed Bug 1911437 Opened 3 months ago Closed 3 months ago

[wpt-sync] Sync PR 47441 - Test :host(:has(...)) and :host:has(...) selectors

Categories

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

task

Tracking

()

RESOLVED FIXED
131 Branch
Tracking Status
firefox131 --- fixed

People

(Reporter: wpt-sync, Unassigned)

References

(Blocks 1 open bug, )

Details

(Whiteboard: [wptsync downstream])

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

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

Westbrook Johnson <westbrook.johnson@gmail.com> wrote:

Test :host(:has(...)) and :host:has(...) selectors

  • :host(:has(...)) works really well is Safari, sort of well in Firefox and not at all in Chrome. It's not really spec'd (IIUC) but normalizing on the output expected by developers and provided by Safari already seems like a good destination to work towards
  • :host:has(...) doesn't work anywhere and isn't spec'd anywhere (IIUC) but this is how I would tentatively expect it to work, similar to that way the :host(.class) references a class "outside" of the shadow root and :host:after references a pseudo element inside of the shadow root.

Both of these types of selectors would likely benefit from various combinator tests and

Component: web-platform-tests → CSS Parsing and Computation
Product: Testing → Core
Whiteboard: [wptsync downstream] → [wptsync downstream error]
Whiteboard: [wptsync downstream error] → [wptsync downstream]

CI Results

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

Total 6 tests

Status Summary

Firefox

PASS: 2
FAIL: 4

Chrome

FAIL: 6

Safari

PASS: 3
FAIL: 3

Links

Gecko CI (Treeherder)
GitHub PR Head
GitHub PR Base

Details

New Tests That Don't Pass

Pushed by wptsync@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/803bcb7689b4 [wpt PR 47441] - Test :host(:has(...)) and :host:has(...) selectors, a=testonly https://hg.mozilla.org/integration/autoland/rev/566dd793ad7e [wpt PR 47441] - Update wpt metadata, a=testonly
Status: NEW → RESOLVED
Closed: 3 months ago
Resolution: --- → FIXED
Target Milestone: --- → 131 Branch
You need to log in before you can comment on or make changes to this bug.