- From: Westbrook Johnson via GitHub <noreply@w3.org>
- Date: Fri, 03 Apr 2026 20:37:47 +0000
- To: public-css-archive@w3.org
I'm definitely not saying I _understand_ what the browser is doing here, but the way the selectors apply leads me to want to confirm that the flattened tree is being respected rather than the propagation of the `:focus`. In https://codepen.io/Westbrook/pen/QwKxgYq, if you tab to the `<a>` you'll see that both the `<a>` and the `<div>` that hosts the shadow tree that the `<a>` is in will match `:focus`. That being so, there is _seemingly_ no need for the flattened tree. Being this same reality is _not_ true for `:focus-visible` the flattened tree would be required, so I'm looking for background on a non-web developer/web visitor perceivable reality of how that works. If the spec work here says "this works because the flat tree", and is implemented as such, awesome. I just want to confirm being it doesn't seem to be required that it was spec'd/implemented that way based on the way the selectors resolve. -- GitHub Notification of comment by Westbrook Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/3080#issuecomment-4185110256 using your GitHub account -- Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config
Received on Friday, 3 April 2026 20:37:48 UTC