- From: Takayoshi Kochi <notifications@github.com>
- Date: Thu, 31 Mar 2016 02:40:39 -0700
- To: w3c/webcomponents <webcomponents@noreply.github.com>
- Message-ID: <w3c/webcomponents/pull/455/r58026073@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> Fixed, and also added one more item so that this rule can be applied recursively. --- 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#r58026073
Received on Thursday, 31 March 2016 09:41:09 UTC