Source code

Revision control

Copy as Markdown

Other Tools

Test Info:

<!DOCTYPE html>
<link rel="author" title="Morten Stenshorne" href="mailto:mstensho@chromium.org">
<link rel="match" href="../../reference/ref-filled-green-100px-square-only.html">
<meta name="assert" content="A vertical percentage padding that resolves to 0 shouldn't prevent margins from collapsing through the box">
<p>Test passes if there is a filled green square.</p>
<div style="float:left; width:100px; background:green;">
<div id="container" style="width:100px;">
<div style="width:100px; margin-bottom:100px;"></div>
<div style="padding:100% 0;"></div>
<div style="width:100px; margin-top:100px;"></div>
</div>
</div>
<script>
document.body.offsetTop;
container.style.width = "0";
</script>