-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 value | none |
|---|---|
| Applies to | see individual properties |
| Inherited | see individual properties |
| Percentages | N/A |
| Computed value | see individual properties |
| Syntax | none | <integer [1,∞]> |
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

| Pixels that differ from Chrome | 480 |
|---|---|
| The same, on the page without the declaration | 336 |
| Largest difference on one colour channel | 238 of 255 |
| The same, on the page without the declaration | 48 of 255 |
Our page is the same with and without the declaration; Chrome’s page changes.
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.
| Value | Measured |
|---|---|
2 | parsed, no effect |
none | not 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.
- Passescss/css-overflow/line-clamp/webkit-line-clamp-050.html
- Passescss/css-overflow/line-clamp/webkit-line-clamp-051.html
- Passescss/css-overflow/line-clamp/webkit-line-clamp-052.html
- Passescss/css-overflow/line-clamp/webkit-line-clamp-053.html
- Passescss/css-overflow/line-clamp/webkit-line-clamp-abspos-001.html
Measured against Chrome 148.0.7778.96 on 5 November 2026, with up to 40 candidate values tried per property. How it was measured