Re: [w3c/webcomponents] Fix #556, make focus navigation work when shadow host's tabindex is -1 (#557)

> @@ -1260,9 +1260,15 @@
>                  <li>Let <var>NAVIGATION-ORDER</var> be an empty list.</li>
>                  <li>For each element <var>ELEMENT</var> in a <a>focus navigation scope</a> <var>SCOPE</var>,
>                    <ol>
> -                    <li>if <var>ELEMENT</var> is focusable, a <a>shadow host</a>, or a <a>slot element</a>, append <var>ELEMENT</var> to <var>NAVIGATION-ORDER</var>.</li>
> +                    <li>If <var>ELEMENT</var> is a <a>shadow host</a>:
> +                      <ol>
> +                        <li>If its <a>tabindex</a> value is not negative and its <a>shadow root</a>'s delegatesFocus flag is set, append <var>ELEMENT</var> to <var>NAVIGATION-ORDER</var>.</li>
> +                        <li>Otherwise, append <var>ELEMENT</var> to <var>NAVIGATION-ORDER</var>.</li>

No. My point is:

```
If (ELEMENT is a shadow host) {
  If (... some condition...) {
    Add appendELEMENT to NAVIGATION-ORDER.
  } else {
    Add appendELEMENT to NAVIGATION-ORDER.
  }
}    
```
This is equivalent to:

```
If (ELEMENT is a shadow host) {
  Add appendELEMENT toNAVIGATION-ORDER.
}    
```

:(

-- 
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/557/files/a5929ff64f56951ea6ec605bed7972e42e8e53be#r77102391

Received on Thursday, 1 September 2016 01:37:50 UTC