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/box-decoration-break-clone-012.html - WPT Dashboard Interop Dashboard
<!DOCTYPE html>
<link rel="author" title="Morten Stenshorne" href="mailto:mstensho@chromium.org">
<meta name="assert" content="Break before tall monolithic content.">
<link rel="match" href="../reference/ref-filled-green-100px-square.xht">
<p>Test passes if there is a filled green square and <strong>no red</strong>.</p>
<div style="overflow:clip; width:100px; height:100px; background:red;">
<div style="columns:2; column-fill:auto; gap:0; height:60px;">
<div style="box-decoration-break:clone; border:20px solid green;">
<div style="height:10px; background:green;"></div>
<div style="contain:size; height:150px; background:green;">
<div style="height:10px;"></div>
<!-- Fill the hole inside the border in the first column: -->
<div style="margin-left:-50px; width:10px; height:10px; background:green;"></div>
<div style="height:20px;"></div>
<!-- Fill the gap after the box in the first column: -->
<div style="margin-left:-70px; width:50px; height:40px; background:green;"></div>
</div>
</div>
</div>
</div>