[csswg-drafts] [css-text-3][css-fonts-3][css-text-decor-3] Distinguish applying to text vs applying to boxes (#5303)

fantasai has just created a new issue for https://github.com/w3c/csswg-drafts:

== [css-text-3][css-fonts-3][css-text-decor-3] Distinguish applying to text vs applying to boxes ==
We've historically only used the 'Applies to' lines to apply to boxes, but it seems we do need to distinguish whether something applies to an inline box vs. line box vs. text:

- For ::marker, a lot of properties don't apply to the marker box, because we don't know what kind of box an outside marker is yet. But they should inherit through to the text and apply there.
- For `display: contents`, properties can be applied to an element that generates no box, but still be pass through to its text.

So I'm thinking we should update the propdef tables of properties that apply to text to say "and text", so we can better define how these cases work. I think the rough idea is to do that for:
- `color` (and maybe all of css-color-adjust?)
- all font properties
- all inheritable css-text-decor properties
- all properties in css-text that apply to inline boxes?

and, going forward, not do that for any properties that rely on knowing box geometry.

(See https://www.w3.org/TR/css-display-3/#intro for discussion of boxes/elements/text runs etc.)

Does this make sense?

Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/5303 using your GitHub account

Received on Thursday, 9 July 2020 00:23:32 UTC