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-nested-033.html - WPT Dashboard Interop Dashboard
<!DOCTYPE html>
<link rel="author" title="Ting-Yu Lin" href="mailto:tlin@mozilla.com">
<link rel="match" href="multicol-nested-033-ref.html">
<meta name="assert" content="Test that the nested multicol's column-gap is resolved against its content-box inline-size in the outer multicol's second column.">
<style>
.multicol {
column-count: 2;
column-fill: auto;
column-gap: 0;
}
#outer {
width: 100px;
height: 100px;
}
#nested {
width: 100%;
height: 200px;
/* column-gap should be resolved to 50px * 30% = 15px. */
column-gap: 30%;
}
#abscb {
position: relative;
width: 100%;
/* Use a height less than the outer column container's height 100px to trigger
the bug. */
height: 50px;
}
#abspos {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 400px;
background: green;
}
</style>
<div id="outer" class="multicol">
<div id="nested" class="multicol">
<div id="abscb">
<div id="abspos"></div>
</div>
</div>
</div>