[css-overflow] convert -webkit-line-clamp alias requirement into a spec issue · Issue #2847 · w3c/csswg-drafts (original) (raw)
Navigation Menu
- GitHub Copilot Write better code with AI
- GitHub Models New Manage and compare prompts
- GitHub Advanced Security Find and fix vulnerabilities
- Actions Automate any workflow
- Codespaces Instant dev environments
- Issues Plan and track work
- Code Review Manage code changes
- Discussions Collaborate outside of code
- Code Search Find more, search less
- Explore
- Pricing
Provide feedback
Saved searches
Use saved searches to filter your results more quickly
Appearance settings
Description
https://drafts.csswg.org/css-overflow-3/#line-clamp
The spec currently requires that a -webkit-line-clamp
alias for line-clamp
be supported. It's not yet clear that a simple alias is a net win for Web compatibility, since Blink and WebKit's -webkit-line-clamp
implementation requires display: -webkit-box; -webkit-box-orientation: vertical;
for the line clamping behavior to kick in. We're concered that there may be content that sets -webkit-line-clamp
on elements that aren't display: -webkit-box; -webkit-box-orientation: vertical;
and end up truncating their content in browsers other than Blink and WebKit.
I suggest that this be turned into a spec issue until we determine what is the best approach for handling -webkit-line-clamp
.