- From: Tab Atkins Jr. via GitHub <sysbot+gh@w3.org>
- Date: Sun, 09 Jun 2019 20:30:53 +0000
- To: public-css-archive@w3.org
You say "stopped unexpectedly at boundaries", I say "correctly encapsulated behavior". ^_^ > (e.g., maybe ::-webkit-progress-bar styling also stops at shadow boundaries?) It does indeed, because *selector matching* does. ::-webkit-progress-bar exists on a `progress` element; the selector `::-webkit-progress-bar` is implicitly equal to `*::-webkit-progress-bar`, which first targets the `progress` element (and a bunch others) and *then* goes down into its pseudo-children and targets the `-webkit-progress-bar` one. A `progress` hidden in a shadow tree won't be targeted by the `*`, and thus you won't style its `::-webkit-progress-bar` either. The only exception to this is that the UA stylesheet exists simultaneously in all tree scopes, so *it* can target `::-webkit-progress-bar` and apply default styling to it regardless of how deep in shadows it is. -- GitHub Notification of comment by tabatkins Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/1695#issuecomment-500242669 using your GitHub account
Received on Sunday, 9 June 2019 20:30:56 UTC