summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/css/CSS2/normal-flow/containing-block-percent-margin-right.html
diff options
context:
space:
mode:
Diffstat (limited to 'testing/web-platform/tests/css/CSS2/normal-flow/containing-block-percent-margin-right.html')
-rw-r--r--testing/web-platform/tests/css/CSS2/normal-flow/containing-block-percent-margin-right.html18
1 files changed, 18 insertions, 0 deletions
diff --git a/testing/web-platform/tests/css/CSS2/normal-flow/containing-block-percent-margin-right.html b/testing/web-platform/tests/css/CSS2/normal-flow/containing-block-percent-margin-right.html
new file mode 100644
index 0000000000..9ae84bd16c
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/normal-flow/containing-block-percent-margin-right.html
@@ -0,0 +1,18 @@
+<!DOCTYPE html>
+<link rel="author" title="Morten Stenshorne" href="mstensho@chromium.org">
+<link rel="help" href="https://www.w3.org/TR/CSS22/box.html#propdef-margin-right">
+<style>
+ #container > div { margin-right:50%; height:100px; background:blue; }
+</style>
+<p>There should be a blue square below.</p>
+<div id="container" style="width:456px;">
+ <div data-expected-width="100" data-expected-height="100"></div>
+</div>
+<script src="/resources/testharness.js"></script>
+<script src="/resources/testharnessreport.js"></script>
+<script src="/resources/check-layout-th.js"></script>
+<script>
+ document.body.offsetTop;
+ document.getElementById("container").style.width = "200px";
+ checkLayout("#container");
+</script>