- From: L. David Baron via GitHub <sysbot+gh@w3.org>
- Date: Thu, 19 Dec 2024 15:35:48 +0000
- To: public-css-archive@w3.org
> The height of a line box is the height of all its inline boxes regardless of nesting level. And `text-box-trim` does not inherit. That means that, to whatever extent `text-box-trim` on an element (such as an `\<em\>`) affects its line height contribution, it cannot be less than the contribution of an unstyled `<span>` wrapping all or any of its contents. Thus, the line height contribution of an inline with `text-box-trim` cannot be less than if `text-box-trim` were not specified on that inline. > > So we can trim its content-box area for painting, but we cannot trim its height contribution. We can only increase it. `text-box-trim` [is defined](https://drafts.csswg.org/css-inline-3/#propdef-text-box-trim) to have somewhat different effects for blocks and inlines. This makes me wonder if these two different effects should be two separate properties so that the effect for inlines can be inherited. (That said, this is *already* a lot of properties, and I have trouble keeping track of what's what already!) -- GitHub Notification of comment by dbaron Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/10834#issuecomment-2554664200 using your GitHub account -- Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config
Received on Thursday, 19 December 2024 15:35:50 UTC