Skip to content

Commit 73528ff

Browse files
mstenshochromium-wpt-export-bot
authored andcommitted
[text-box-trim] Trim leading / trailing column spanners.
Add support for text-box-trim to the column layout algorithm. Previously we'd rely on the block layout algorithm for column content, but with no support for spanners. Bug: 388523921 Change-Id: Id03290ca3510b54c38c4686ddc82b2322c6c663b Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/6308806 Reviewed-by: Koji Ishii <[email protected]> Commit-Queue: Morten Stenshorne <[email protected]> Cr-Commit-Position: refs/heads/main@{#1426265}
1 parent d034690 commit 73528ff

File tree

1 file changed

+48
-0
lines changed

1 file changed

+48
-0
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
<!DOCTYPE html>
2+
<title>Test text-box-trim on multicol with column spanner</title>
3+
<link rel="author" title="Morten Stenshorne" href="mailto:[email protected]">
4+
<link rel="help" href="https://drafts.csswg.org/css-inline-3/#text-box-trim">
5+
<link rel="help" href="https://github.com/w3c/csswg-drafts/issues/11363#issuecomment-2578257911">
6+
<link rel="stylesheet" type="text/css" href="/fonts/ahem.css" />
7+
<script src="/resources/testharness.js"></script>
8+
<script src="/resources/testharnessreport.js"></script>
9+
<script src="/resources/check-layout-th.js"></script>
10+
<style>
11+
.multicol {
12+
columns: 3;
13+
text-box-trim: trim-both;
14+
font: 5px/10px Ahem;
15+
margin: 10px;
16+
orphans: 1;
17+
widows: 1;
18+
background: #ddd;
19+
}
20+
</style>
21+
<div class="multicol" data-expected-height="5">
22+
<div style="column-span:all;">x</div>
23+
</div>
24+
<div class="multicol" data-expected-height="15">
25+
<div style="column-span:all;">x</div>
26+
<div style="column-span:all;">x</div>
27+
</div>
28+
<div class="multicol" data-expected-height="25">
29+
<div style="column-span:all;">x</div>
30+
x
31+
<div style="column-span:all;">x</div>
32+
</div>
33+
<div class="multicol" data-expected-height="35">
34+
x
35+
<div style="column-span:all;">x</div>
36+
x
37+
<div style="column-span:all;">x</div>
38+
</div>
39+
<div class="multicol" data-expected-height="45">
40+
x
41+
<div style="column-span:all;">x</div>
42+
x
43+
<div style="column-span:all;">x</div>
44+
x
45+
</div>
46+
<script>
47+
checkLayout(".multicol");
48+
</script>

0 commit comments

Comments
 (0)