Source code
Revision control
Copy as Markdown
Other Tools
Test Info:
- This WPT test may be referenced by the following Test IDs:
- /css/css-break/out-of-flow-in-multicolumn-127.html - WPT Dashboard Interop Dashboard
<!DOCTYPE html>
<link rel="author" title="Ting-Yu Lin" href="mailto:tlin@mozilla.com">
<link rel="match" href="../reference/ref-filled-green-100px-square.xht">
<meta name="assert" content="An abspos should paint in the correct column when its transformed containing block fragments and its static position is in a different column.">
<style>
.multicol {
columns: 2;
column-fill: auto;
column-gap: 0;
width: 200px;
height: 100px;
}
.transform {
transform: translate(0);
}
.abspos {
position: absolute;
top: 0;
left: 0;
width: 100px;
height: 100px;
background: green;
}
</style>
<p>Test passes if there is a filled green square and <strong>no red</strong>.</p>
<div class="multicol">
<div class="transform">
<div style="width: 100px; height: 100px; background: red"></div>
<div style="height: 40px"></div> <!-- Ensure the static pos of the abspos is in the second column. -->
<div class="abspos"></div>
</div>
</div>