[csswg-drafts] [selectors] Figure out how Custom Elements hook into :focus-visible (#4322)

tabatkins has just created a new issue for https://github.com/w3c/csswg-drafts:

== [selectors] Figure out how Custom Elements hook into :focus-visible ==
Discussion at the Web Components meetup at TPAC led to the reasonable consensus that if a node in a shadow tree is focused, then the shadow host should match `:focus` (to match the fact that the light dom's `document.activeElement` is the shadow host).

There's the further issue, tho, of whether/how `:focus-visible` matches in a light dom when the actual focused element is in a shadow tree. [The spec currently gives guidelines to UAs for when :focus-visible should match](https://drafts.csswg.org/selectors/#the-focus-visible-pseudo), but I don't think we can automagically determine whether a shadow host fulfills one of these criteria.

Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/4322 using your GitHub account

Received on Tuesday, 17 September 2019 06:44:37 UTC