Skip to content

Commit fd3b2d3

Browse files
committed
Introduce FocusOptions.focusVisible.
Fixes #7830
1 parent 5ddb6b4 commit fd3b2d3

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

source

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3867,6 +3867,7 @@ a.setAttribute('href', 'https://example.com/'); // change the content attribute
38673867
<li><dfn
38683868
data-x-href="https://drafts.csswg.org/selectors/#the-focus-visible-pseudo"><code>:focus-visible</code></dfn>
38693869
pseudo-class</li>
3870+
<li><dfn data-x-href="https://drafts.csswg.org/selectors/#indicate-focus">indicate focus</dfn></li>
38703871
</ul>
38713872

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

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

7747477476
<dl class="domintro">
@@ -77629,6 +77631,12 @@ END:VCARD</pre>
7762977631

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

77634+
<li><p>If the value of the <dfn dict-member for="FocusOptions"><code
77635+
data-x="dom-focusoptions-focusvisible">focusVisible</code></dfn> dictionary member of
77636+
<var>options</var> is true,
77637+
or is not present but matches an <span>implementation-defined</span> heuristic,
77638+
then <span>indicate focus</span>.</p></li>
77639+
7763277640
<li><p>If the value of the <dfn dict-member for="FocusOptions"><code
7763377641
data-x="dom-focusoptions-preventscroll">preventScroll</code></dfn> dictionary member of
7763477642
<var>options</var> is false, then <span data-x="scroll an element into view">scroll the element

0 commit comments

Comments
 (0)