summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/css/CSS2/normal-flow/auto-margins-used-values-with-floats.tentative.html
diff options
context:
space:
mode:
Diffstat (limited to 'testing/web-platform/tests/css/CSS2/normal-flow/auto-margins-used-values-with-floats.tentative.html')
-rw-r--r--testing/web-platform/tests/css/CSS2/normal-flow/auto-margins-used-values-with-floats.tentative.html40
1 files changed, 40 insertions, 0 deletions
diff --git a/testing/web-platform/tests/css/CSS2/normal-flow/auto-margins-used-values-with-floats.tentative.html b/testing/web-platform/tests/css/CSS2/normal-flow/auto-margins-used-values-with-floats.tentative.html
new file mode 100644
index 0000000000..3a48dae4b6
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/normal-flow/auto-margins-used-values-with-floats.tentative.html
@@ -0,0 +1,40 @@
+<!DOCTYPE html>
+<link rel="help" href="https://www.w3.org/TR/CSS22/visudet.html#blockwidth">
+<link rel="help" href="https://github.com/w3c/csswg-drafts/issues/9174">
+<script src="/resources/testharness.js"></script>
+<script src="/resources/testharnessreport.js"></script>
+<script src="/resources/check-layout-th.js"></script>
+<style>
+.container {
+ display: flow-root;
+ width: 100px;
+ padding: 5px;
+ box-sizing: border-box;
+}
+.box {
+ display: flow-root;
+ width: 40px;
+ height: 10px;
+ background: lime;
+}
+.float {
+ float: right;
+ width: 20px;
+ height: 40px;
+ background: cyan;
+}
+</style>
+<body onload="checkLayout('.box')">
+ <div class="container">
+ <div class="float"></div>
+ <div class="box" style="margin: auto;" data-expected-margin-left="15" data-expected-margin-right="35"></div>
+ <div class="box" style="margin-left: auto;" data-expected-margin-left="30" data-expected-margin-right="0"></div>
+ <div class="box" style="margin-right: auto;" data-expected-margin-left="0" data-expected-margin-right="50"></div>
+ </div>
+ <div class="container" style="direction: rtl;">
+ <div class="float"></div>
+ <div class="box" style="margin: auto;" data-expected-margin-left="15" data-expected-margin-right="35"></div>
+ <div class="box" style="margin-left: auto;" data-expected-margin-left="30" data-expected-margin-right="0"></div>
+ <div class="box" style="margin-right: auto;" data-expected-margin-left="0" data-expected-margin-right="50"></div>
+ </div>
+</body>