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

Re: [css4-selectors] Allowing pseudo-classes on pseudo-elements

From: fantasai <fantasai.lists@inkedblade.net>
Date: Fri, 18 Mar 2011 15:04:09 -0700
Message-ID: <4D83D6D9.1080408@inkedblade.net>
To: Sylvain Galineau <sylvaing@microsoft.com>
CC: "www-style@w3.org" <www-style@w3.org>
On 03/09/2011 04:34 PM, Sylvain Galineau wrote:
> Current selector syntax does not allow a pseudo-class to qualify a pseudo-element
> i.e. E::first-line:hover will not match when the first line of E is hovered.
> Working through our latest CSS3 Grid Alignment proposal [1], this means one couldn't do :
> 	#grid::grid-cell("nav"):hover {
> 		...
> 	}
> One option would be to move the pseudo-class inside the functional part of the
> pseudo-element which - imo - looks unnatural i.e. the author would be writing
> something like #grid::grid-cell("nav" :hover) because the syntax disallows
> #grid::grid-cell("nav"):hover.

Current selector syntax isn't necessarily future selector syntax, and if you are
defining new selectors in your draft you can define appropriate syntax there.

This is, btw, most definitely not a css3-selectors issue. If anything it's a
css4-selectors issue. :)

Received on Saturday, 19 March 2011 00:28:56 UTC

This archive was generated by hypermail 2.4.0 : Friday, 25 March 2022 10:07:57 UTC