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

RE: [css4-pseudo] The need for more powerful pseudo elements

From: François REMY <francois.remy.dev@outlook.com>
Date: Tue, 30 Apr 2013 15:48:19 +0200
Message-ID: <DUB120-W6297DD079D32D9B69C11DA5B30@phx.gbl>
To: Simon Sapin <simon.sapin@exyr.org>, "www-style@w3.org" <www-style@w3.org>
> I like this idea. Flexbox’s 'order' property could be use to order the
> pseudo-elements of the same element, but we’d still need a way to
> consistently order pseudos that have the same 'order' value, or where
> it’s just not specified.

Indeed, that could work. 

For the same-order elements, it could be decided that the order is the priority order of the rules that define the pseudo-element (ie: selector specificity and then source order) but that require saving information about the selectors into the property values.

Also, it would cause unexpected reorders on :hover. 

   x::before(abc) { ... }
   x::before(cde) { ... }
   x:hover::before(abc) { ... }

Ordering things isn't an easy problem, as I found out ^_^ 		 	   		  
Received on Tuesday, 30 April 2013 13:48:47 UTC

This archive was generated by hypermail 2.4.0 : Friday, 25 March 2022 10:08:29 UTC