Re: [csswg-drafts] "Applies to: all elements" should mean the property applies to ::before and ::after (#1861)

The precise effect of "applying" or "not applying" tends to vary a fair bit. The statement you wrote is generic enough that it's probably fine in all cases, but I wouldn't add it, as I am not sure it helps more than it hurts when it comes to gray zones and other ambiguities.

For instance, css-text has a bunch of things that apply to inline boxes. If you try and apply them to block boxes, it inherits into the (possibly anonymous) inline boxes, and has an effect that way. This is not in contradiction with the statement you made, since indeed, there is no effect on the block box, and its only through inheritance that anything happens, but the statement does shed any light on this situation.

Another one would be `writing-mode` and `text-orientation`, which don't apply to various table parts, yet still influence the calculation of [font relative length units](https://drafts.csswg.org/css-values/#font-relative-length) on these same elements through the computed value. Still not necessarily a contradiction if you're strict about it, but not really helping either.

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


-- 
Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config

Received on Monday, 14 September 2020 00:40:34 UTC