diff options
Diffstat (limited to 'testing/web-platform/tests/css/CSS2/normal-flow/margin-collapsing-dynamic.html')
-rw-r--r-- | testing/web-platform/tests/css/CSS2/normal-flow/margin-collapsing-dynamic.html | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/testing/web-platform/tests/css/CSS2/normal-flow/margin-collapsing-dynamic.html b/testing/web-platform/tests/css/CSS2/normal-flow/margin-collapsing-dynamic.html new file mode 100644 index 0000000000..f1b8ee5ddb --- /dev/null +++ b/testing/web-platform/tests/css/CSS2/normal-flow/margin-collapsing-dynamic.html @@ -0,0 +1,12 @@ +<!DOCTYPE html> +<link rel="match" href="../../reference/ref-filled-green-100px-square.xht" /> +<link rel="help" href="https://www.w3.org/TR/CSS22/box.html#collapsing-margins" title="8.3.1 Collapsing margins"> +<p>Test passes if there is a filled green square and <strong>no red</strong>.</p> +<div style="width: 100px; height: 100px; background: green;"></div> +<div style="width: 0; height: 0; outline: solid red 50px; position: relative; z-index: 1; overflow: clip; margin-left: 50px;"> + <div id="target"></div> +</div> +<script> +document.body.offsetTop; +document.getElementById('target').style.marginTop = '-1000px'; +</script> |