You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Text-box-trim specifies whether and how browsers should remove vertical spacings above and below the text content from the first and last lines of block text. This feature allows developers to have precise control over spacing, and ensures font metrics are respected during layout in terms of spacing.
"Additional Signals, WebKit: No information" is incorrect.
This is an area where Apple has been leading. We were first to implement. We presented this feature at WWDC23. We've had a complete feature on by default in Safari Technology Preview for more than a year, refining it as we helped push the final details through the standards process.
Description
Text-box-trim specifies whether and how browsers should remove vertical spacings above and below the text content from the first and last lines of block text. This feature allows developers to have precise control over spacing, and ensures font metrics are respected during layout in terms of spacing.
Past proposals
Specification
https://www.w3.org/TR/css-inline-3/#propdef-text-box-trim
Additional Signals
Standards Positions
Tests
Browser Bugs
Developer Surveys
leading-trim
#155 (comment)leading-trim
#155 (comment)Additional Signals
The text was updated successfully, but these errors were encountered: