diff options
Diffstat (limited to 'testing/web-platform/tests/css/CSS2/abspos/between-float-and-text.html')
-rw-r--r-- | testing/web-platform/tests/css/CSS2/abspos/between-float-and-text.html | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/testing/web-platform/tests/css/CSS2/abspos/between-float-and-text.html b/testing/web-platform/tests/css/CSS2/abspos/between-float-and-text.html new file mode 100644 index 0000000000..b4c933e8d8 --- /dev/null +++ b/testing/web-platform/tests/css/CSS2/abspos/between-float-and-text.html @@ -0,0 +1,11 @@ +<!DOCTYPE html> +<title>Auto-positioned abspos after text, before float</title> +<link rel="author" title="Morten Stenshorne" href="mstensho@chromium.org"> +<link rel="help" href="https://www.w3.org/TR/CSS22/visudet.html#abs-non-replaced-width" title="10.3.7 Absolutely positioned, non-replaced elements"> +<link rel="match" href="../../reference/ref-filled-green-200px-square.html"> +<p>Test passes if there is a filled green square and <strong>no red</strong>.</p> +<div style="line-height:20px; margin-top:-20px;"> + + <div style="position:absolute; width:200px; height:200px; background:green;"></div> + <div style="float:left; margin-top:20px; width:200px; height:200px; background:red;"></div> +</div> |