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

Re: Two proposals: 1. Implement a new pseudo-class selector ::between, 2. Allow pseudo-class selectors to be recursive

From: Oriol _ <oriol-bugzilla@hotmail.com>
Date: Tue, 6 Mar 2018 19:40:32 +0000
To: "www-style@w3.org" <www-style@w3.org>
Message-ID: <VI1PR09MB078321808FBFDB620E42F66F97D90@VI1PR09MB0783.eurprd09.prod.outlook.com>
Some years ago I proposed the same idea in https://lists.w3.org/Archives/Public/www-style/2015Oct/0105.html

I have been refining it in https://github.com/Loirooriol/css-contents

As Daniel says, these new boxes shouldn't be inserted by default. An UA-origin `display: contents` can be used to address this.

Then the main problem is inheritance. It would be nice to set e.g. `color` in this pseudo-element, and let the children of the element inherit it.

But using the `inherit` keyword on a non-inherited property should continue getting the value from the parent element and not from the pseudo-element, which will probably have the initial value (unless `all: inherit` is added in UA origin).

I have filed https://github.com/w3c/csswg-drafts/issues/2406 if you want to discuss in github.

Received on Tuesday, 6 March 2018 19:41:03 UTC

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