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

Re: [selectors5] Proposal for a pseudo combinator

From: Tab Atkins Jr. <jackalmage@gmail.com>
Date: Thu, 5 Apr 2012 16:02:15 -0700
Message-ID: <CAAWBYDCnVFwyAfW6XMXSYZG5PET+B2LiE7PNXY-C7o47Q+A-BA@mail.gmail.com>
To: www-style list <www-style@w3.org>
Argh, it was just pointed out to me that we can't get full
backward-compat even with my last paragraph, because of the descendant
combinator.

A current selector like "p ::before" means "the before pseudo of all
descendants of p".  In my proposal, it would instead mean "the before
pseudo of p".

It's possible that this form of selector is very rare - after all,
it's a pretty stupid selector.  I expect it to appear only in those
weird CSS hack experiments that use tons of pseudos to achieve some
cool result.  If so, then we can just let its meaning change.

I'd need to do some testing, though.  If it does cause breakage, we'd
need to choose a different syntax for the combinator.

~TJ
Received on Thursday, 5 April 2012 23:03:10 GMT

This archive was generated by hypermail 2.3.1 : Tuesday, 26 March 2013 17:20:52 GMT