- From: fantasai via GitHub <sysbot+gh@w3.org>
- Date: Fri, 13 Dec 2024 06:24:33 +0000
- To: public-css-archive@w3.org
Thinking more on this issue, one problem we need to avoid is breaking CSS's “[Transparency Principle](https://wiki.csswg.org/ideas/principles)”: that inserting an unstyled inline in an inline formatting context should have no effect on styling. So, for example, `<em>Some text</em>` and `<em><span>Some text</span></em>` must have identical rendering, no matter what styles are applied to `<em>`. 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. -- GitHub Notification of comment by fantasai Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/10834#issuecomment-2540644321 using your GitHub account -- Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config
Received on Friday, 13 December 2024 06:24:35 UTC