Skip to content
Skip the list of specifications

-webkit-line-clamp

parsed, no effect

css-overflow-4

Our parser accepts the name, yet our rendering is the same with and without the declaration, while Chrome’s changes: on this page the declaration has no effect.

What the specification says

Initial valuenone
Applies tosee individual properties
Inheritedsee individual properties
PercentagesN/A
Computed valuesee individual properties
Syntaxnone | <integer [1,∞]>

The definition in css-overflow-4

The measurements

One example. Each is one declaration on a small page, drawn by Chrome and by our engine. Drag on a picture to move the line between them.

-webkit-line-clamp:2

parsed, no effect
Chrome rendering
Ours rendering
Left of the line is ours, right of it Chrome’s rendering. Drag on the picture to move the line.
Pixels that differ from Chrome480
The same, on the page without the declaration336
Largest difference on one colour channel238 of 255
The same, on the page without the declaration48 of 255

Our page is the same with and without the declaration; Chrome’s page changes.

The example’s page

Which values were measured

A match on one example means a match at the value tried. The property’s grammar has 2 branches, and 1 of them carries a measurement.

ValueMeasured
2
parsed, no effect
nonenot measured

Tests that name this property

5 web-platform-tests link to this property’s definition. Few tests carry such a link, so a short list says little about the property.

Measured against Chrome 148.0.7778.96 on 5 November 2026, with up to 40 candidate values tried per property. How it was measured