Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Text-box-trim #781

Open
kojiishi opened this issue Oct 3, 2024 · 2 comments
Open

Text-box-trim #781

kojiishi opened this issue Oct 3, 2024 · 2 comments
Labels
focus-area-proposal Focus Area Proposal

Comments

@kojiishi
Copy link

kojiishi commented Oct 3, 2024

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

  • Gecko: No information
  • WebKit: implemented in Safari Technology Preview

Tests

Browser Bugs

Developer Surveys

Additional Signals

@kojiishi kojiishi added the focus-area-proposal Focus Area Proposal label Oct 3, 2024
@jonrimmer
Copy link

There was a popular article published earlier this year that touched on the problems this property would help solve: Hardest Problem in Computer Science: Centering Things

@jensimmons
Copy link
Contributor

"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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
focus-area-proposal Focus Area Proposal
Projects
Status: No status
Development

No branches or pull requests

3 participants