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

Introduce FocusOptions.focusVisible. #8087

Merged
merged 2 commits into from
Jul 13, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions source
Original file line number Diff line number Diff line change
Expand Up @@ -3867,6 +3867,7 @@ a.setAttribute('href', 'https://example.com/'); // change the content attribute
<li><dfn
data-x-href="https://drafts.csswg.org/selectors/#the-focus-visible-pseudo"><code>:focus-visible</code></dfn>
pseudo-class</li>
<li><dfn data-x-href="https://drafts.csswg.org/selectors/#indicate-focus">indicate focus</dfn></li>
</ul>

<p>The following features are defined in <cite>CSS Values and Units</cite>: <ref
Expand Down Expand Up @@ -77469,6 +77470,7 @@ END:VCARD</pre>

<pre><code class="idl">dictionary <dfn dictionary>FocusOptions</dfn> {
boolean <span data-x="dom-focusoptions-preventscroll">preventScroll</span> = false;
boolean <span data-x="dom-focusoptions-focusvisible">focusVisible</span>;
};</code></pre>

<dl class="domintro">
Expand Down Expand Up @@ -77629,6 +77631,11 @@ END:VCARD</pre>

<li><p>Run the <span>focusing steps</span> for the element.</p></li>

<li><p>If the value of the <dfn dict-member for="FocusOptions"><code
data-x="dom-focusoptions-focusvisible">focusVisible</code></dfn> dictionary member of
emilio marked this conversation as resolved.
Show resolved Hide resolved
<var>options</var> is true, or is not present but in an <span>implementation-defined</span> way
emilio marked this conversation as resolved.
Show resolved Hide resolved
the user agent determines it would be best to do so, then <span>indicate focus</span>.</p></li>
emilio marked this conversation as resolved.
Show resolved Hide resolved
emilio marked this conversation as resolved.
Show resolved Hide resolved

<li><p>If the value of the <dfn dict-member for="FocusOptions"><code
data-x="dom-focusoptions-preventscroll">preventScroll</code></dfn> dictionary member of
<var>options</var> is false, then <span data-x="scroll an element into view">scroll the element
Expand Down