Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Take shadow DOM into account #21

Closed
frivoal opened this issue Feb 16, 2018 · 3 comments
Closed

Take shadow DOM into account #21

frivoal opened this issue Feb 16, 2018 · 3 comments
Labels
help wanted needs:feedback The editors would like feedback from more people before resolving topic:spec type:question Known unknows: things we need to investigate

Comments

@frivoal
Copy link
Collaborator

frivoal commented Feb 16, 2018

The spec does not currently say anything about shadow DOM. It most certainly should say something.

@frivoal frivoal added help wanted type:question Known unknows: things we need to investigate topic:spec needs:feedback The editors would like feedback from more people before resolving labels Apr 2, 2018
@jihyerish
Copy link
Collaborator

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 #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?

@jihyerish
Copy link
Collaborator

In this case, seqnav works that the focus doesn't go inside the shadow DOM even if there is any focusable element within it.

There was a discussion about setting tabindex=-1 on a shadow host makes the elements inside the shadow DOM be skipped for the sequential navigation (tab navigation).
related issue: WICG/webcomponents#520 (comment)

@frivoal
Copy link
Collaborator Author

frivoal commented Dec 3, 2018

Issue migrated to w3c/csswg-drafts#3381

@frivoal frivoal closed this as completed Dec 3, 2018
@WICG WICG locked and limited conversation to collaborators Dec 3, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
help wanted needs:feedback The editors would like feedback from more people before resolving topic:spec type:question Known unknows: things we need to investigate
Projects
None yet
Development

No branches or pull requests

2 participants