Commit 82aea1f
[css-overflow-4] Don't clamp by height with
As per the latest resolution on #12041, `line-clamp: <integer>` cannot
clamp by both lines and height due to web compat issues with its
prefixed `-webkit-line-clamp` alias. The behavior of clamping by lines
and height, whichever comes earlier, is still wanted; but it needs an
opt-in syntax that has not been decided yet.
Since neither the syntax of this behavior on the `line-clamp`
shorthand, nor its mapping into its longhands, are yet clear, this
PR disables this behavior –clamping only by the auto clamp point when
`max-lines: none`, and only by the line-based clamp point otherwise–
while adding an issue marker.
This change also moves the definition of "line-based clamp point" to
the `max-lines` section.line-clamp: <integer>
1 parent df2c247 commit 82aea1f
1 file changed
+10
-8
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1188 | 1188 | | |
1189 | 1189 | | |
1190 | 1190 | | |
1191 | | - | |
| 1191 | + | |
1192 | 1192 | | |
1193 | 1193 | | |
1194 | 1194 | | |
| |||
1584 | 1584 | | |
1585 | 1585 | | |
1586 | 1586 | | |
1587 | | - | |
1588 | | - | |
1589 | | - | |
1590 | | - | |
1591 | | - | |
1592 | | - | |
1593 | | - | |
| 1587 | + | |
| 1588 | + | |
| 1589 | + | |
| 1590 | + | |
| 1591 | + | |
1594 | 1592 | | |
1595 | 1593 | | |
1596 | 1594 | | |
| |||
1622 | 1620 | | |
1623 | 1621 | | |
1624 | 1622 | | |
| 1623 | + | |
| 1624 | + | |
| 1625 | + | |
| 1626 | + | |
1625 | 1627 | | |
1626 | 1628 | | |
1627 | 1629 | | |
| |||
0 commit comments