Skip to content

Commit f198683

Browse files
committed
[css-overflow-3] Clarify compatibilty value and property
The -webkit- prefixed compat part of line-clamp and related properties aren't meant to be anything out of ordinary in terms of property mechanics, cascading, OM, etc. They're defined in a separate section do deemphasize them, but otherwise behave normally. The previous description was confusing about that, so this clarifies that. See #6842
1 parent 33b4535 commit f198683

File tree

1 file changed

+16
-2
lines changed

1 file changed

+16
-2
lines changed

css-overflow-3/Overview.bs

+16-2
Original file line numberDiff line numberDiff line change
@@ -1398,8 +1398,22 @@ Limiting Visible Lines: the 'line-clamp' shorthand property</h3>
13981398
Legacy compatibility</h4>
13991399

14001400
For compatibility with legacy content,
1401-
UAs that support 'line-clamp' must also support the <dfn dfn-type=property>-webkit-line-clamp</dfn> property.
1402-
Like 'line-clamp', it is a shorthand of 'max-lines', 'continue', and 'block-ellipsis',
1401+
UAs that support 'line-clamp' must also support the '-webkit-line-clamp' property
1402+
and the additional ''-webkit-discard'' value for the 'continue' property.
1403+
1404+
<pre class="propdef shorthand">
1405+
Name: -webkit-line-clamp
1406+
Value: none | <<integer>>
1407+
Initial: none
1408+
Percentages: N/A
1409+
</pre>
1410+
1411+
<pre class="propdef partial">
1412+
Name: continue
1413+
New Values: -webkit-discard
1414+
</pre>
1415+
1416+
Like 'line-clamp', '-webkit-line-clamp' is a shorthand of 'max-lines', 'continue', and 'block-ellipsis',
14031417
except that:
14041418

14051419
* its syntax is ''line-clamp/none'' | <<integer>>

0 commit comments

Comments
 (0)