- From: Hayato Ito <notifications@github.com>
- Date: Wed, 30 Mar 2016 22:22:58 -0700
- To: w3c/webcomponents <webcomponents@noreply.github.com>
- Message-ID: <w3c/webcomponents/pull/455/r58002417@github.com>
> @@ -1117,6 +1117,20 @@ > </section> > > <section> > + <h3>Focus</h3> > + <p>A <a>shadow host</a> can delegate focus to its <a>shadow root</a> by assigning a boolean <a href="#widl-ShadowRootInit-delegatesFocus">delegatesFocus</a> flag to be true in <a href="#idl-def-ShadowRootInit">ShadowRootInit</a> dictionary. If omitted, a <a>shadow host</a> does not delegate focus to its shadow root, and the shadow host itself can be focusable.</p> > + <p>When a shadow host delegates focus, user agent <strong>must</strong> behave as follows. > + <ol> > + <li>When the <a>shadow host</a> is being focused by TAB focus navigation: if the direction is forward, the first focusable element in its <a>shadow tree</a> gets focuse. If the direction is backward, the last focusable element in its <a>shadow tree</a> gets focuse. If there is no focusable element in its <a>shadow tree</a>, the <a>shadow host</a> is skipped for the navigation. See the next secition for the formal definition.</li> > + <li>When the <a>shadow host</a> is being focused by <code>focus()</code> method or <code>autofocus</code> attribute: The first focusable element in its <a>shadow tree</a> gets focus.</li> > + <li>When non-focusable area in its <a>shadow tree</a> is clicked: The first focusable element in its <a>shadow tree</a> gets focus.</li> > + <li>When a focusable element in its <a>shadow tree</a> is clicked: The element itself gets focus.</li> > + <li>When any of its <a>shadow tree</a> has focus, <code>:focus</code> pseudo-class on the shadow host matches.</li> "*any* of its shadow tree" is ambiguous. Use more formal definition. ":focus matches an element" is weird expression. Could you improve this sentence? See https://drafts.csswg.org/selectors-4/#the-focus-pseudo --- You are receiving this because you are subscribed to this thread. Reply to this email directly or view it on GitHub: https://github.com/w3c/webcomponents/pull/455/files/092c765527b669e6ca0d43badb68aa0bcd56812f#r58002417
Received on Thursday, 31 March 2016 05:23:48 UTC