Source code
Revision control
Copy as Markdown
Other Tools
Test Info:
- This WPT test may be referenced by the following Test IDs:
- /css/css-inline/text-box-trim/text-box-trim-multicol-001.html - WPT Dashboard Interop Dashboard
<!DOCTYPE html>
<title>Test when a box with `text-box-trim` is multi-column</title>
<link rel="match" href="text-box-trim-multicol-001-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;
font-family: Ahem;
font-size: 40px;
line-height: 2;
orphans: 1;
widows: 1;
}
.trim {
text-box-trim: trim-both;
text-box-edge: text;
}
</style>
<div class="multicol trim">
abc abc abc abc
abc abc abc abc
abc abc
<div class="spacer"></div>
</div>