Skip to content

Commit d9664f7

Browse files
SebastianZfantasai
authored andcommitted
[css-overflow-4] Added limits to line-clamp and -webkit-line-clamp syntax (w3c#8409)
1 parent 51bf5d0 commit d9664f7

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

css-overflow-4/Overview.bs

+4-4
Original file line numberDiff line numberDiff line change
@@ -809,7 +809,7 @@ Limiting Visible Lines: the 'line-clamp' shorthand property</h3>
809809

810810
<pre class="propdef shorthand">
811811
Name: line-clamp
812-
Value: none | <<integer>> <<'block-ellipsis'>>?
812+
Value: none | <<integer [1,∞]>> <<'block-ellipsis'>>?
813813
Initial: none
814814
Percentages: N/A
815815
</pre>
@@ -840,7 +840,7 @@ Limiting Visible Lines: the 'line-clamp' shorthand property</h3>
840840
'continue' to ''continue/auto'',
841841
and 'block-ellipsis' to ''block-ellipsis/none''.
842842

843-
<dt><dfn><<integer>></dfn>
843+
<dt><dfn><<integer [1,∞]>> <'block-ellipsis'>?</dfn>
844844
<dd>Sets 'max-lines' to the specified <<integer>>,
845845
'continue' to ''discard'',
846846
and the 'block-ellipsis' property to second component of the value
@@ -899,7 +899,7 @@ Legacy compatibility</h4>
899899

900900
<pre class="propdef shorthand">
901901
Name: -webkit-line-clamp
902-
Value: none | <<integer>>
902+
Value: none | <<integer [1,∞]>>
903903
Initial: none
904904
Percentages: N/A
905905
</pre>
@@ -912,7 +912,7 @@ Legacy compatibility</h4>
912912
Like 'line-clamp', '-webkit-line-clamp' is a shorthand of 'max-lines', 'continue', and 'block-ellipsis',
913913
except that:
914914

915-
* its syntax is ''line-clamp/none'' | <<integer>>
915+
* its syntax is ''line-clamp/none'' | <<integer [1,∞]>>
916916
* it sets 'continue' to ''-webkit-discard'' instead of ''discard''
917917
* it unconditionally sets 'block-ellipsis' to ''block-ellipsis/auto''
918918

0 commit comments

Comments
 (0)