W3C home > Mailing lists > Public > public-css-archive@w3.org > June 2020

[csswg-drafts] [css-inline-3] line-height < 1 in a margin-box line layout model (#5178)

From: fantasai via GitHub <sysbot+gh@w3.org>
Date: Sat, 06 Jun 2020 07:04:25 +0000
To: public-css-archive@w3.org
Message-ID: <issues.opened-632261832-1591427064-sysbot+gh@w3.org>
fantasai has just created a new issue for https://github.com/w3c/csswg-drafts:

== [css-inline-3] line-height < 1 in a margin-box line layout model ==
We had discussed a new mode that switches inline boxes to use their margin-box height instead of the 'line-height' when sizing the line box. This works when there's sufficient slack in the inter-line spacing, however when 'line-height' is less than 1 any inline box would necessarily cause the line box to expand. Somehow we have to apply negative half-leading to these inline boxes.

So far I can think of two sensible ways to do this:

- Apply the negative half-leading to the content-box edges, reducing the content-box size (and consequently the margin-box size) of the inline box.
- Apply the negative half-leading to the margin-box edges, reducing the margin-box directly, but leaving the content box (and consequently the inline's background painting area) unchanged.

The difference here really is whether the visible background painting area / border box is impacted. (I'll note that we don't have negative padding, so while the author can easily expand the visible box, it's not otherwise possible to shrink it.)

Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/5178 using your GitHub account
Received on Saturday, 6 June 2020 07:04:26 UTC

This archive was generated by hypermail 2.4.0 : Tuesday, 5 July 2022 06:42:09 UTC