Re: [csswg-drafts] [css-inline-3] The interaction of `text-edge` with `line-height` is not predictable by authors (#8476)

> `text-edge` is always applied (except on the root inline box).

Okay, thanks for clarifying. This makes more sense now.

The case we're thinking of is something like this: (Imagine A+D = 14px, but the author doesn't know this, because authors don't know the exact metrics of the fonts they use)

- The author writes `span { line-height: 13px }` which has an effect, because 13px is less than A+D, so the line-height of their span is tightened up
- The author wants to loosen up the line-height of the span, so they modify it to say `span { line-height: 14px }` which has an apparent effect, because 14px is exactly equal to A+D
- The author wants to loosen it up even more, so they modify it to say `span { line-height: 15px }` which does _not_ have an effect, because positive leading is treated as 0
- The author is super confused now, why `13px` and `14px` work, but `15px` doesn't seem to work

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


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

Received on Wednesday, 29 March 2023 06:31:00 UTC