W3C home > Mailing lists > Public > public-css-archive@w3.org > December 2018

Re: [csswg-drafts] Take shadow DOM into account (#3381)

From: Florian Rivoal via GitHub <sysbot+gh@w3.org>
Date: Mon, 03 Dec 2018 07:48:52 +0000
To: public-css-archive@w3.org
Message-ID: <issue_comment.created-443618057-1543823331-sysbot+gh@w3.org>

Migrated from https://github.com/WICG/spatial-navigation/issues/21#issuecomment-404409104
Originally created by @jihyerish on *Thu, 12 Jul 2018 06:55:32 GMT*

I think there are several things that we need to discuss shadow DOM.

### 1. How the focus navigates for the open shadow DOM whose shadow host has "tabindex=-1"?
  In this case, seqnav works that the focus doesn't go inside the shadow DOM even if there is any focusable element within it.
    Should the spatnav behave the same with seqnav?
    I think spatnav would behave the same with seqnav which is the focus cannot move inside the shadow dom if the shadow host is specified with "tabindex=-1".

   Depends on the discussion in https://github.com/WICG/spatial-navigation/issues/69, this behavior may be described in other way. 
   If shadow dom becomes spatnav container by default, it causes the conflict with the suggestion above.
   Because the focus can move inside the spatnav container even if the spatnav container is specified with "tabindex=-1".

### 2. How the focus navigates for the closed shadow DOM?

It would be hard to know about which element has the focus within the shadow DOM.
   (e.g. shadowRoot.activeElement returns null)
Can the browser know wheather the focus can move more inside the shadow dom?
Can the focus move out from the shadow dom if there isn't any focusable element?
Can navnotarget event be used for shadow DOM in this case?

GitHub Notification of comment by frivoal
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/3381#issuecomment-443618057 using your GitHub account
Received on Monday, 3 December 2018 07:48:53 UTC

This archive was generated by hypermail 2.4.0 : Tuesday, 5 July 2022 06:41:40 UTC