- From: Hayato Ito <notifications@github.com>
- Date: Wed, 30 Mar 2016 22:25:25 -0700
- To: w3c/webcomponents <webcomponents@noreply.github.com>
- Message-ID: <w3c/webcomponents/pull/455/r58002545@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> > "When non-focusable area in its shadow tree is clicked" It is not clear to me how this can be defined? Could you explain? --- 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#r58002545
Received on Thursday, 31 March 2016 05:25:53 UTC