W3C home > Mailing lists > Public > www-style@w3.org > June 2017

Re: [selectors4] multiple pseudo-elements per selector

From: fantasai <fantasai.lists@inkedblade.net>
Date: Wed, 21 Jun 2017 13:43:11 -0400
To: Bruce Lawson <bruce@brucelawson.co.uk>, www-style@w3.org
Message-ID: <3e5f89b5-a05a-b88a-1b75-0c82919b6e08@inkedblade.net>
On 06/21/2017 12:02 PM, Bruce Lawson wrote:
> Hello fellow Stylistics
> 
> ever since I can remember, the line "A future version of this specification may allow multiple pseudo-elements per selector."
> 
> What's the reason for that? What's the reason it's not currently allowed?

Pseudo-elements aren't just filtering which element is selected:
they actually create structure in the box tree. So if we have a
pseudo element attached to a pseudo-element, it creates a box
structure that doesn't currently exist, and pseudo-element box
structures can be particularly intricate and complicated to
implement since many of them don't fit into the box's tree
structure.

Therefore we intend to only allow specific combinations--those
that are needed for particular use cases.

~fantasai
Received on Wednesday, 21 June 2017 17:43:44 UTC

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