Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add shadow host consideration for :focus selector #4731

Merged
merged 10 commits into from
Sep 24, 2019
Prev Previous commit
Next Next commit
wrapping nits
domenic committed Jun 27, 2019
commit 8ea956a62a1120c3022df79bf4ce063e9c50b569
17 changes: 7 additions & 10 deletions source
Original file line number Diff line number Diff line change
@@ -68951,16 +68951,13 @@ Demos:
<li>
domenic marked this conversation as resolved.
Show resolved Hide resolved
<p>at least one of the following is true:</p>
domenic marked this conversation as resolved.
Show resolved Hide resolved
<ul>
<li>
<p>it is one of the elements listed in the <span>focus chain</span> of the <span
data-x="currently focused area of a top-level browsing context">currently focused area of
the top-level browsing context</span>, or</p>
</li>
<li>
<p>the <span>shadow root</span> <var>shadowRoot</var> is not null, <var>shadowRoot</var>'s
<span>delegates focus</span> is true, and <var>shadowRoot</var> is the <span>root</span> of
at least one element that <span data-x="element has the focus">has the focus</span>.</p>
</li>
<li><p>it is one of the elements listed in the <span>focus chain</span> of the <span
data-x="currently focused area of a top-level browsing context">currently focused area of
the top-level browsing context</span>, or</p></li>
<li><p>its <span>shadow root</span> <var>shadowRoot</var> is not null,
domenic marked this conversation as resolved.
Show resolved Hide resolved
<var>shadowRoot</var>'s <span>delegates focus</span> is true, and <var>shadowRoot</var> is
the <span>root</span> of at least one element that <span data-x="element has the focus">has
the focus</span>.</p></li>
</ul>
domenic marked this conversation as resolved.
Show resolved Hide resolved
</li>
</ul>