Source code

Revision control

Copy as Markdown

Other Tools

Test Info:

<!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="match" href="text-box-trim-multicol-007-ref.html">
<link rel="stylesheet" type="text/css" href="/fonts/ahem.css" />
<style>
.spacer {
background: lightgray;
block-size: 5px;
}
.multicol {
column-count: 3;
column-fill: auto;
border: 1px solid;
height: 240px;
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="spacer"></div>
<div class="trim">
abc abc
abc abc abc
abc abc
</div>
<div class="spacer"></div>
</div>