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
21 lines
558 B
HTML
21 lines
558 B
HTML
<!DOCTYPE html>
|
|
<link rel="help" href="https://drafts.csswg.org/css-overflow-3/#webkit-line-clamp">
|
|
<link rel="match" href="reference/webkit-line-clamp-038-ref.html">
|
|
<meta name="assert" content="-webkit-line-clamp correctly clamps a block-in-inline.">
|
|
<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
|
|
<span><div>Line 2<br>Line 3<br>Line 4</div></span>
|
|
Line 5
|
|
</div>
|
|
</div>
|