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

I'm open to other solutions, but the problem is that if you ask for tighter setting, you need to get it, and if every span contributes its A+D (for some value of A+D based on the metrics chosen in `text-edge`), then you can't set it any tighter than A+D.

The fundamental model we are going for is:

- The author sets their desired line-height (baseline-to-baseline spacing) on the paragraph.
- The author says what qualifies as the "edge" of the text when measuring whether it overflows the line (potentially overlapping other content), and thus what should cause the line to grow if it doesn't fit within the desired line box height.

If they ask for tighter spacing (`line-height`) than what the font reserves, we somehow need to give it to them by similarly constricting every descendant inline box. There's maybe a better way to do this, but we need to apply the insetting effect of a tighter line spacing to the descendant inlines _somehow_.

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


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

Received on Saturday, 1 April 2023 17:57:49 UTC