Re: [csswg-drafts] [css-inline-3] Improve illustrations for text edges (#11364)

> If I'm understanding the illustration correctly, text-edge: leading; is actually line-height which splits the space evenly above and below the text, creating half leading which is the problem to begin with.

Maybe just `line`, as its done with `ex` (not `ex-height`). Line height is the height of a line. Baseline to baseline would also be line height.

> To properly reflect the spacing behaviour, shouldn't the properties be changed to the following...
>
> 1. text-edge: leading; becomes text-edge: line-height;
> 2. text-edge: text; becomes text-edge: leading?

I think `leading` is not a good choice for either one, because (without context) it's unclear about whether it's where leading starts or ends. But given that the note mentions `ascent` and `descent`, as well as that CSS uses half leading, I personally understood the keyword for what it was meant to represent. Changing `text` to `leading` would be quite a bit more confusing for the same reason. One could not be sure wether this means extender, or "where  the line ends" (at half leading).

So `line` and `extender` maybe, unless `extender` is too technical, in which case I'd go for `line` and `text`.


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


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

Received on Tuesday, 21 October 2025 02:26:23 UTC