-
Notifications
You must be signed in to change notification settings - Fork 3.3k
/
Copy pathtext-box-trim-multicol-005.html
38 lines (38 loc) · 1.09 KB
/
text-box-trim-multicol-005.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
<!DOCTYPE html>
<title>Test when a box with `text-box-trim` is block fragmented</title>
<meta name="assert" content="text-box-trim specified inside a fragmentation context does not trim at column boundaries unless box-decoration-break is 'clone'">
<link rel="help" href="https://drafts.csswg.org/css-inline-3/#text-box-edge">
<link rel="help" href="https://drafts.csswg.org/css-inline-3/#text-box-trim">
<link rel="help" href="https://github.com/w3c/csswg-drafts/issues/5335#issuecomment-1908655635">
<link rel="match" href="text-box-trim-multicol-005-ref.html">
<link rel="stylesheet" type="text/css" href="/fonts/ahem.css" />
<style>
.spacer {
background: lightgray;
block-size: 100px;
}
.multicol {
column-count: 3;
column-fill: auto;
border: 1px solid;
height: 290px;
width: 20ch;
text-box-trim: trim-both;
font-family: Ahem;
font-size: 40px;
line-height: 2;
orphans: 1;
widows: 1;
}
.trim {
text-box-trim: trim-end;
text-box-edge: text;
}
</style>
<div class="multicol">
<div class="trim">
abc abc abc abc
abc abc abc abc
</div>
<div class="spacer"></div>
</div>