Repository navigation
Commit 0ab92b0
[line-clamp] Changing the width of a line-clamp container shows the lines past the clamp point
<div id=container style="line-clamp: 2; width: 300px"><div>Line 1</div><div>Line 2</div><div>Line 3</div></div>
<script>document.body.offsetHeight; container.style.width = "200px";</script>
Line 3 should stay hidden after the width change.
Ensure that the remaining budget goes back to the parent state, the same way the legacy line clamp's does.
WebKit-Bug: https://bugs.webkit.org/show_bug.cgi?id=325509
WebKit-Canonical-Link: https://commits.webkit.org/322600@main1 parent 1bee03c commit 0ab92b0
2 files changed
Lines changed: 30 additions & 0 deletions
File tree
- css/css-overflow/line-clamp
- reference
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
0 commit comments