CSS -webkit-line-clamp Property Reference

The CSS -webkit-line-clamp property is a standard property in WebKit Extensions. Review its formal syntax, computed behavior, and practical declarations.

CSS -webkit-line-clamp Property Reference

The CSS -webkit-line-clamp property is a standard property in WebKit Extensions. Review its formal syntax, computed behavior, and practical declarations.

Updated 2026-08-12

-webkit-line-clamp overview

The CSS -webkit-line-clamp property is a standard property in WebKit Extensions. Review its formal syntax, computed behavior, and practical declarations.

The property is not inherited by default. Use an explicit global keyword when inheritance is intended.

Syntax and formal definition

-webkit-line-clamp formal syntax
FieldValue
Formal syntaxnone | <integer>
Initial valuenone
Applies toallElements
InheritedNo
Percentagesno
Computed valueasSpecified
Animation typebyComputedValueType
Mediavisual
Specification groupWebKit Extensions
StatusStandard

Practical examples

These declarations demonstrate valid ways to set -webkit-line-clamp. The initial and inherit global keywords remain available even when a property-specific value is preferable.

-webkit-line-clamp live example
CSS .reset-example { -webkit-line-clamp: initial; } .inherit-example { -webkit-line-clamp: inherit; } @supports (-webkit-line-clamp: initial) { .supported { -webkit-line-clamp: initial; } }

Description

The CSS -webkit-line-clamp property is a standard property in WebKit Extensions. Review its formal syntax, computed behavior, and practical declarations.

References

  1. MDN: -webkit-line-clamp
  2. MDN: CSS Properties Reference

Similar or alternative tools

Don't forget to set a bookmark for tool.io!
Privacy | Imprint | Cookies