| Summary: | [leading-trim] nested elements shift text upwards | ||||||||
|---|---|---|---|---|---|---|---|---|---|
| Product: | WebKit | Reporter: | Jan Nicklas <j.nicklas> | ||||||
| Component: | Layout and Rendering | Assignee: | zalan <zalan> | ||||||
| Status: | NEW --- | ||||||||
| Severity: | Normal | CC: | bfulgham, mic.gallego, ntim, simon.fraser, webkit-bug-importer, zalan | ||||||
| Priority: | P2 | Keywords: | InRadar | ||||||
| Version: | Safari Technology Preview | ||||||||
| Hardware: | All | ||||||||
| OS: | All | ||||||||
| Attachments: |
|
||||||||
|
Description
Jan Nicklas
2023-02-13 02:11:57 PST
Updated Reproduction Demo for Safari Technology Preview Release 171 (Safari 16.4, WebKit 18616.1.15) Updated to the latest css property name (from leading-trim to text-box-trim) https://codepen.io/jantimon-the-sans/pen/zYMxqOw The problem is still the same as described in the initial issue: Nest multiple elements with the text-box-trim property set shift the text upwards multiple times Hi, I am trying to use this feature as a progressive enhancement for a better alignment, but unfortunately the way it renders is... strange. We are trying to use this but whenever a customer italicize a text inside, it is shifted up: https://codepen.io/bakura10/pen/rNPyyvg I am also attaching another screenshot. According to CanIUse, this feature will be enabled by default in next version,but this currently makes it nearly unusable :/. Created attachment 468513 [details]
Use case with EM
|