diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-07 17:32:43 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-07 17:32:43 +0000 |
commit | 6bf0a5cb5034a7e684dcc3500e841785237ce2dd (patch) | |
tree | a68f146d7fa01f0134297619fbe7e33db084e0aa /testing/web-platform/tests/css/CSS2/floats/remove-block-between-inline-and-float.html | |
parent | Initial commit. (diff) | |
download | thunderbird-6bf0a5cb5034a7e684dcc3500e841785237ce2dd.tar.xz thunderbird-6bf0a5cb5034a7e684dcc3500e841785237ce2dd.zip |
Adding upstream version 1:115.7.0.upstream/1%115.7.0upstream
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'testing/web-platform/tests/css/CSS2/floats/remove-block-between-inline-and-float.html')
-rw-r--r-- | testing/web-platform/tests/css/CSS2/floats/remove-block-between-inline-and-float.html | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/testing/web-platform/tests/css/CSS2/floats/remove-block-between-inline-and-float.html b/testing/web-platform/tests/css/CSS2/floats/remove-block-between-inline-and-float.html new file mode 100644 index 0000000000..21235d550d --- /dev/null +++ b/testing/web-platform/tests/css/CSS2/floats/remove-block-between-inline-and-float.html @@ -0,0 +1,22 @@ +<!DOCTYPE html> +<title>Removing block between inline and float should put the two on the same line</title> +<link rel="author" title="Morten Stenshorne" href="mstensho@chromium.org"> +<link rel="help" href="https://www.w3.org/TR/CSS22/visuren.html#floats" title="9.5 Floats"> +<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> +<!-- This is a block with block children, so inlines need to be wrapped inside + anonymous blocks. A float and out-of-flow positioned box is neutral here, + in that it can either live among block children OR among inline + children. If it is (or becomes) sibling of an inline child, though, it + should be wrapped inside the same anonymous block as the inline, or layout + will be wrong. --> +<div style="width:200px; background:red;"> + <div style="height:50px; background:green;"></div> + <div style="display:inline-block; vertical-align:top; width:100px; height:150px; background:green;"></div> + <div id="removeMe" style="height:100px;"></div> + <div style="float:left; width:100px; height:150px; background:green;"></div> +</div> +<script> + document.body.offsetTop; // Trigger layout. + document.getElementById("removeMe").style.display = "none"; +</script> |