- From: Brian Kardell <bkardell@gmail.com>
- Date: Wed, 21 Sep 2011 13:34:41 -0400
- To: Ian Hickson <ian@hixie.ch>
- Cc: www-style@w3.org, fantasai <fantasai.lists@inkedblade.net>
Received on Wednesday, 21 September 2011 17:35:10 UTC
Right, that's kind of where I was going... Removes the weirdness of being able to use $ in a nonsensical manner and adds no additional pseudo class. I'm not sure if that is what fantasai was saying, but wouldn't that work? On Sep 21, 2011 1:17 PM, "Ian Hickson" <ian@hixie.ch> wrote: > On Tue, 20 Sep 2011, fantasai wrote: >> On 09/20/2011 05:22 PM, Ian Hickson wrote: >> > On Tue, 20 Sep 2011, fantasai wrote: >> > > >> > > So, given that, rather than having a "scoped vs. global" switch, how >> > > about using a pseudo-class to distinguish whether a portion of the >> > > selector is matching out-of-scope elements? E.g. >> > > >> > > <style scoped> >> > > section> h1 { border-bottom: solid; } >> > > :context(body.homepage) h1 { color: red; } >> > > :context(body.archive) h1 { color: gray; } >> > > </style> >> > >> > ...what element does the :context() match against? >> >> The one defining the scope. > > So basically :context(...) is like :scope:matches(... #) ? > > -- > Ian Hickson U+1047E )\._.,--....,'``. fL > http://ln.hixie.ch/ U+263A /, _.. \ _\ ;`._ ,. > Things that are impossible just take longer. `._.-(,_..'--(,_..'`-.;.' >
Received on Wednesday, 21 September 2011 17:35:10 UTC