Skip to content

Commit

Permalink
Introduce FocusOptions.focusVisible.
Browse files Browse the repository at this point in the history
  • Loading branch information
emilio committed Jul 7, 2022
1 parent 5ddb6b4 commit 5c831c3
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions source
Original file line number Diff line number Diff line change
Expand Up @@ -77469,6 +77469,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 +77630,12 @@ 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
<var>options</var> is <code data-x="">true</code>,
or is not present but matches an <span>implementation-defined</span> heuristic,
then <a href="https://drafts.csswg.org/selectors/#indicate-focus">indicate focus</a>.</p></li>

<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

0 comments on commit 5c831c3

Please sign in to comment.