forked from mirrors/gecko-dev
Automatic update from web-platform-tests [block-in-inline] Support line-clamping correctly. To do this we always set the correct "lines-util-clamp" on the layout result, and just read that within the block-layout-algorithm. For non block-in-inline layout there should be no behaviour change. Bug: 716930 Change-Id: Ib8fc361f356943f385becd7503fa152d1f0f091d Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/3111327 Commit-Queue: Ian Kilpatrick <ikilpatrick@chromium.org> Reviewed-by: Koji Ishii <kojii@chromium.org> Cr-Commit-Position: refs/heads/main@{#914520} -- wpt-commits: 44ad65779f32e83e6f84d97ccfb976d1a0e6cf11 wpt-pr: 30115
16 lines
295 B
HTML
16 lines
295 B
HTML
<!DOCTYPE html>
|
|
<style>
|
|
.clamp {
|
|
display: -webkit-box;
|
|
-webkit-box-orient: vertical;
|
|
-webkit-line-clamp: 3;
|
|
font: 16px / 32px serif;
|
|
background-color: yellow;
|
|
overflow: hidden;
|
|
}
|
|
</style>
|
|
<div class="clamp">
|
|
<div>
|
|
Line 1<br>Line 2<br>Line 3<br>Line 4<br>Line 5
|
|
</div>
|
|
</div>
|