W3C home > Mailing lists > Public > www-style@w3.org > March 2012

Re: [css3-regions] @region and specificity

From: Tab Atkins Jr. <jackalmage@gmail.com>
Date: Mon, 19 Mar 2012 18:00:28 -0700
Message-ID: <CAAWBYDApGiv_6QExJm7iUhNPZYdfiU3Ry=owa8CTpGo36m573w@mail.gmail.com>
To: fantasai <fantasai.lists@inkedblade.net>
Cc: www-style@w3.org
On Mon, Mar 19, 2012 at 5:45 PM, fantasai <fantasai.lists@inkedblade.net> wrote:
> I think what I had in mind was to use pseudo-elements, like this:
>
>  .first::region h1 { color: purple; }

Side-track, but if we remove the "pseudo-elements must be at the end
of the selector" restriction, we've *really* got to change that
combinator.

Because that's what the :: is - it's a combinator like >, just
selecting into the pseudo-tree hanging off the preceding element
rather than children/siblings.  The fact that it doesn't *look* like a
combinator is problematic.  It makes it harder to do pretty
formatting, you can't use other types of simple selectors in
conjunction with it, etc.

~TJ
Received on Tuesday, 20 March 2012 01:01:16 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Tuesday, 22 May 2012 03:48:52 GMT