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 12, 2022
1 parent 5ddb6b4 commit 13c49b3
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 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,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 true,
or is not present but in an <span>implementation-defined</span> way the user agent determines it
would be best to do so, then <span>indicate focus</span>.</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 13c49b3

Please sign in to comment.