Re: [csswg-drafts] [css-pseudo] Add a ::contents pseudo-element

>  most things would be sort of crazy: double margin, double border

Yes, in this case setting some `display` value wouldn't be enough to enable the pseudo-element, authors would need to also use `all: unset` to make it behave properly. Which wouldn't be nice at all, but I thought somebody could prefer this over different inheritance paths for different kinds of properties.

> This is so cool, I love it.

Yes, it's one of my favorite features too. Making `::before` and `::after` behave as siblings can be used to fix all kinds of layouts. That's why generating a box inside the element is more useful than outside (as proposed in the old CSS Content), then we don't need `::before-outside` or `::after-outside`.

> You probably also should write down how this affects selectors

Yes, selectors shouldn't be affected

-- 
GitHub Notification of comment by Loirooriol
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/2406#issuecomment-371477802 using your GitHub account

Received on Thursday, 8 March 2018 12:50:15 UTC