diff options
Diffstat (limited to 'testing/web-platform/tests/css/CSS2/normal-flow/margin-collapse-through-percentage-padding.html')
-rw-r--r-- | testing/web-platform/tests/css/CSS2/normal-flow/margin-collapse-through-percentage-padding.html | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/testing/web-platform/tests/css/CSS2/normal-flow/margin-collapse-through-percentage-padding.html b/testing/web-platform/tests/css/CSS2/normal-flow/margin-collapse-through-percentage-padding.html new file mode 100644 index 0000000000..dfd5015d05 --- /dev/null +++ b/testing/web-platform/tests/css/CSS2/normal-flow/margin-collapse-through-percentage-padding.html @@ -0,0 +1,18 @@ +<!DOCTYPE html> +<link rel="author" title="Morten Stenshorne" href="mailto:mstensho@chromium.org"> +<link rel="help" href="https://www.w3.org/TR/CSS22/box.html#collapsing-margins"> +<link rel="help" href="https://bugs.chromium.org/p/chromium/issues/detail?id=967193"> +<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> |