Skip to content

Commit

Permalink
Don't paint line-clamped lines.
Browse files Browse the repository at this point in the history
This matches the proposal in
w3c/csswg-drafts#10816, and creates much better
behavior.

Differential Revision: https://phabricator.services.mozilla.com/D157578

bugzilla-url: https://bugzilla.mozilla.org/show_bug.cgi?id=1791226
gecko-commit: cf9f54eef33465d089f850a55da5734a911fdac4
gecko-reviewers: layout-reviewers, dshin
  • Loading branch information
emilio authored and moz-wptsync-bot committed Oct 21, 2024
1 parent 05ae498 commit 05018b0
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,4 @@
</style>
<div class="clamp">Line 1
Line 2…
Line 3
Line 4
Line 5</div>
</div>
8 changes: 2 additions & 6 deletions css/css-overflow/line-clamp/webkit-line-clamp-050.html
Original file line number Diff line number Diff line change
Expand Up @@ -16,15 +16,11 @@
border: medium solid green;
padding: 15px;
}
span {
/* TODO: Remove once we don't paint clamped lines */
color: transparent;
}
</style>
<div class="clamp">
Line1
<div>Line2<br><span>Line3</span></div>
<span>Line4</span>
<div>Line2<br>Line3</div>
Line4
<div>Line5<br>Line6</div>
Line7
</div>

0 comments on commit 05018b0

Please sign in to comment.