Closed Bug 1561290 Opened 5 years ago Closed 5 years ago

[wpt-sync] Sync PR 17493 - CSS: :focus selector effects on shadow host with delegatesFocus

Categories

(Core :: DOM: Core & HTML, defect, P4)

defect

Tracking

()

RESOLVED FIXED
mozilla71
Tracking Status
firefox71 --- fixed

People

(Reporter: mozilla.org, Unassigned)

References

()

Details

(Whiteboard: [wptsync downstream])

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

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

Rakina Zata Amni <rakina@chromium.org> wrote:

CSS: :focus selector effects on shadow host with delegatesFocus

See https://github.com/whatwg/html/pull/4731 for the spec change.

As noted in that PR, this WPT expects that :focus will select a host if any shadow-including descendant is focused (see the last test in the test file). Happy to change it to not be like that too.

Component: web-platform-tests → CSS Parsing and Computation
Product: Testing → Core
Component: CSS Parsing and Computation → DOM: Core & HTML
Ran 8 tests and 15 subtests
OK     : 8
PASS   : 5
FAIL   : 10

New tests that have failures or other problems:
/shadow-dom/focus/focus-selector-delegatesFocus.html
    :focus applies to host with delegatesFocus=false when an element in a nested shadow tree with delegatesFocus=false is focused: FAIL
    :focus applies to host with delegatesFocus=false when an element in a nested shadow tree with delegatesFocus=true is focused: FAIL
    :focus applies to host with delegatesFocus=false when slotted element has focus: FAIL
    :focus applies to host with delegatesFocus=false when the shadow root's descendant has focus: FAIL
    :focus applies to host with delegatesFocus=true when an element in a nested shadow tree with delegatesFocus=false is focused: FAIL
    :focus applies to host with delegatesFocus=true when an element in a nested shadow tree with delegatesFocus=true is focused: FAIL
    :focus applies to host with delegatesFocus=true when slotted element has focus: FAIL
    :focus applies to host with delegatesFocus=true when the shadow root's descendant has focus: FAIL
Pushed by wptsync@mozilla.com:
https://hg.mozilla.org/integration/mozilla-inbound/rev/319b49b753b9
[wpt PR 17493] - CSS: :focus selector effects on shadow hosts, a=testonly
https://hg.mozilla.org/integration/mozilla-inbound/rev/1d07dcbdc8d3
[wpt PR 17493] - Update wpt metadata, a=testonly
Status: NEW → RESOLVED
Closed: 5 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla71
You need to log in before you can comment on or make changes to this bug.