Source code
Revision control
Copy as Markdown
Other Tools
Test Info:
- This WPT test may be referenced by the following Test IDs:
- /css/css-multicol/multicol-zero-height-003.html - WPT Dashboard Interop Dashboard
<!DOCTYPE html>
<meta charset="utf-8">
<title>CSS Multi-column Test: Test a block element with box-decoration-break:clone in a zero height multi-column container</title>
<link rel="author" title="Ting-Yu Lin" href="mailto:tlin@mozilla.com">
<link rel="match" href="multicol-zero-height-003-ref.html">
<meta name="assert" content="This test verifies that a block element with box-decoration-break:clone can make progress when fragmenting in a zero height multi-column container. Also, it should expend 1px of its content-box per fragment, and therefore should only need to create 2 fragments.">
<style>
.multicol {
column-width: 100px;
inline-size: 300px;
block-size: 0;
}
.child {
color: green;
inline-size: 100px;
block-size: 2px;
border: 5px solid green;
box-decoration-break: clone;
}
</style>
<p>There shouldn't be a green strip in the third column.</p>
<div class="multicol">
<div class="child"></div>
</div>