[css-overflow] convert -webkit-line-clamp alias requirement into a spec issue · Issue #2847 · w3c/csswg-drafts (original) (raw)

Skip to content

Provide feedback

Saved searches

Use saved searches to filter your results more quickly

Sign up

Appearance settings

@heycam

Description

@heycam

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.