- From: Oriol _ <oriol-bugzilla@hotmail.com>
- Date: Tue, 6 Mar 2018 19:40:32 +0000
- To: "www-style@w3.org" <www-style@w3.org>
Received on Tuesday, 6 March 2018 19:41:03 UTC
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. --Oriol
Received on Tuesday, 6 March 2018 19:41:03 UTC