You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The line-clamp property is a shorthand for the max-lines, block-ellipsis, and continue properties.
Name:-webkit-line-clamp
Value:none |
Canonical order: per grammar
[...]
Like line-clamp, -webkit-line-clamp is a shorthand of max-lines, continue, and block-ellipsis [...]
I would assume max-lines, block-ellipsis, continue, because the grammar of line-clamp takes an explicit value for max-lines then for , and the grammar of -webkit-line-clamp only takes an explicit max-lines value.
Would you accept a PR with the following clarification(s) in the definition of -webkit-line-clamp?
- Like 'line-clamp', '-webkit-line-clamp' is a shorthand of 'max-lines', 'continue', and 'block-ellipsis',+ Like 'line-clamp', '-webkit-line-clamp' is a shorthand of 'max-lines', 'block-ellipsis', and 'continue',
except that:
* its syntax is ''line-clamp/none'' | <>
- * it sets 'continue' to ''-webkit-discard'' instead of ''discard''
* it unconditionally sets 'block-ellipsis' to ''block-ellipsis/auto''
+ * it sets 'continue' to ''-webkit-discard'' instead of ''discard''+ when an `<>` is specified
The text was updated successfully, but these errors were encountered:
Sorry for not catching this earlier. I don't think the order of the prose text is usually taken as a strong indicator or the canonical order, but just to be on the safe side, I agree with your suggestion. Just applied it to the spec (slightly tweaked, to take into account other recent changes).
Is it
max-lines
,block-ellipsis
,continue
? Ormax-lines
,continue
,block-ellipsis
?https://drafts.csswg.org/css-overflow-4/#propdef-line-clamp
https://drafts.csswg.org/css-overflow-4/#propdef--webkit-line-clamp
I would assume
max-lines
,block-ellipsis
,continue
, because the grammar ofline-clamp
takes an explicit value formax-lines
then for
, and the grammar of-webkit-line-clamp
only takes an explicitmax-lines
value.Would you accept a PR with the following clarification(s) in the definition of
-webkit-line-clamp
?The text was updated successfully, but these errors were encountered: