Source code
Revision control
Copy as Markdown
Other Tools
Test Info: Warnings
- This test has a WPT meta file that expects 5 subtest issues.
- This WPT test may be referenced by the following Test IDs:
- /css/css-inline/text-box-trim/text-box-trim-multicol-013.html - WPT Dashboard Interop Dashboard
<!DOCTYPE html>
<title>Test text-box-trim on multicol with column spanner</title>
<link rel="author" title="Morten Stenshorne" href="mailto:mstensho@chromium.org">
<link rel="stylesheet" type="text/css" href="/fonts/ahem.css" />
<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>
<script src="/resources/check-layout-th.js"></script>
<style>
.multicol {
columns: 3;
text-box-trim: trim-both;
font: 5px/10px Ahem;
margin: 10px;
orphans: 1;
widows: 1;
background: #ddd;
}
</style>
<div class="multicol" data-expected-height="5">
<div style="column-span:all;">x</div>
</div>
<div class="multicol" data-expected-height="15">
<div style="column-span:all;">x</div>
<div style="column-span:all;">x</div>
</div>
<div class="multicol" data-expected-height="25">
<div style="column-span:all;">x</div>
x
<div style="column-span:all;">x</div>
</div>
<div class="multicol" data-expected-height="35">
x
<div style="column-span:all;">x</div>
x
<div style="column-span:all;">x</div>
</div>
<div class="multicol" data-expected-height="45">
x
<div style="column-span:all;">x</div>
x
<div style="column-span:all;">x</div>
x
</div>
<script>
checkLayout(".multicol");
</script>