- From: Oriol Brufau via GitHub <sysbot+gh@w3.org>
- Date: Wed, 07 Feb 2018 00:25:31 +0000
- To: public-css-archive@w3.org
CSS 2 says that `line-height` on a block container behaves as a minimum height value for the line boxes inside it, due to the [strut](https://www.w3.org/TR/CSS22/visudet.html#strut). However, it seems CSS Inline tries to explain this behavior by introducing a [root inline box](https://drafts.csswg.org/css-inline-3/#root-inline-box) that inherits the `line-height` from the block container. Then, the question is: how do the root inline box and `::first-line` interact? That's #1384. So if the strut no longer exists and the fragment in the first line of the root inline box inherits from `::first-line`, then I expect a reduced line height. If the strut still exists or all the root inline box fragments inherit from the block container, then I don't expect a reduced line height. See [bug 1427241](https://bugzilla.mozilla.org/show_bug.cgi?id=1427241). --- > Anything that is on this line is included in the `::first-line` definition, therefore should behave like a block in my humble opinion. But a `::first-line` does not stretch to fill all the available space as a block would do by default. See https://jsfiddle.net/q36d3wmx/ -- GitHub Notification of comment by Loirooriol Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/2282#issuecomment-363613016 using your GitHub account
Received on Wednesday, 7 February 2018 00:25:37 UTC