Skip to content

Commit 41bdbcd

Browse files
committed
[css-overflow-3] Add (-webkit-)line-clamp
Part of #390
1 parent 98417a7 commit 41bdbcd

File tree

1 file changed

+33
-0
lines changed

1 file changed

+33
-0
lines changed

css-overflow-3/Overview.bs

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -684,6 +684,39 @@ Indicating Block-Axis Overflow: the 'block-overflow' property</h2>
684684
to use as either an inline-level or block-level indicator
685685
(in which case, it can capture events).
686686

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+
687720
Privacy and Security Considerations {#priv-sec}
688721
===============================================
689722

0 commit comments

Comments
 (0)