forked from mirrors/gecko-dev
Automatic update from web-platform-tests [block-in-inline] Fix block-in-inline with -webkit-line-clamp When the `-webkit-line-clamp` property adds ellipsis to the first line of the block-in-inline, it hits DCHECK and produces invalid fragment tree. Because |NGInlineLayoutAlgorithm| handles `-webkit-line-clamp` recursively, ellipsis are already added inside of the block- in-inline. This patch avoids applying ellipsis to the block-in-inline itself. Bug: 1289804 Change-Id: I8f9f2ad6427e3b8c524075f0daba07e9909caba3 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/3406498 Commit-Queue: Koji Ishii <kojii@chromium.org> Auto-Submit: Koji Ishii <kojii@chromium.org> Reviewed-by: Kent Tamura <tkent@chromium.org> Commit-Queue: Kent Tamura <tkent@chromium.org> Cr-Commit-Position: refs/heads/main@{#962391} -- wpt-commits: 327098fae2ff9c9b37421add9d6e910660ec11bd wpt-pr: 32508
17 lines
231 B
HTML
17 lines
231 B
HTML
<!DOCTYPE html>
|
|
<style>
|
|
.clamp {
|
|
display: -webkit-inline-box;
|
|
-webkit-box-orient: vertical;
|
|
-webkit-line-clamp: 3;
|
|
}
|
|
</style>
|
|
<body>
|
|
<div class="clamp">
|
|
1<br>
|
|
2<br>
|
|
<div>3</div>
|
|
4<br>
|
|
5
|
|
</div>
|
|
</body>
|