File tree 1 file changed +33
-0
lines changed 1 file changed +33
-0
lines changed Original file line number Diff line number Diff line change @@ -684,6 +684,39 @@ Indicating Block-Axis Overflow: the 'block-overflow' property</h2>
684
684
to use as either an inline-level or block-level indicator
685
685
(in which case, it can capture events).
686
686
687
+
688
+ <h2 id=line-clamp>
689
+ Setting 'max-lines' and 'block-overflow' together: the 'line-clamp' property</h2>
690
+
691
+ <pre class=propdef>
692
+ Name : line-clamp
693
+ Value : none | <<integer>>
694
+ Initial : none
695
+ Applies to : see individual properties
696
+ Inherited : see individual properties
697
+ Animatable : see individual properties
698
+ Percentages : N/A
699
+ Media : visual
700
+ Computed value : see individual properties
701
+ </pre>
702
+
703
+ The 'line-clamp' property is a <a>shorthand</a>
704
+ for the 'max-lines' and 'block-overflow' properties.
705
+
706
+ <dl dfn-for=line-clamp dfn-type=value>
707
+ <dt> <dfn>none</dfn>
708
+ <dd> Sets 'max-lines' to ''max-lines/none''
709
+ and 'block-overflow' to ''block-overflow/clip'' .
710
+
711
+ <dt> <dfn><<integer>></dfn>
712
+ <dd> Sets 'max-lines' to the specified <<integer>>
713
+ and 'block-overflow' to ''block-overflow/ellipsis'' .
714
+
715
+ </dl>
716
+
717
+ For compatibility with legacy content, UAs that support 'line-clamp' must also support <dfn dfn-type=property>-webkit-line-clamp</dfn> as an alias.
718
+
719
+
687
720
Privacy and Security Considerations {#priv-sec}
688
721
===============================================
689
722
You can’t perform that action at this time.
0 commit comments