summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/css/css-writing-modes/ortho-htb-alongside-vrl-floats-010.xht
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-07 09:22:09 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-07 09:22:09 +0000
commit43a97878ce14b72f0981164f87f2e35e14151312 (patch)
tree620249daf56c0258faa40cbdcf9cfba06de2a846 /testing/web-platform/tests/css/css-writing-modes/ortho-htb-alongside-vrl-floats-010.xht
parentInitial commit. (diff)
downloadfirefox-43a97878ce14b72f0981164f87f2e35e14151312.tar.xz
firefox-43a97878ce14b72f0981164f87f2e35e14151312.zip
Adding upstream version 110.0.1.upstream/110.0.1upstream
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'testing/web-platform/tests/css/css-writing-modes/ortho-htb-alongside-vrl-floats-010.xht')
-rw-r--r--testing/web-platform/tests/css/css-writing-modes/ortho-htb-alongside-vrl-floats-010.xht88
1 files changed, 88 insertions, 0 deletions
diff --git a/testing/web-platform/tests/css/css-writing-modes/ortho-htb-alongside-vrl-floats-010.xht b/testing/web-platform/tests/css/css-writing-modes/ortho-htb-alongside-vrl-floats-010.xht
new file mode 100644
index 0000000000..195e988f00
--- /dev/null
+++ b/testing/web-platform/tests/css/css-writing-modes/ortho-htb-alongside-vrl-floats-010.xht
@@ -0,0 +1,88 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
+
+<html xmlns="http://www.w3.org/1999/xhtml">
+
+ <head>
+
+ <title>CSS Writing Modes Test: positioning of an orthogonal (horizontal-tb) block alongside vertical-rl floats</title>
+
+ <link rel="author" title="GĂ©rard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" />
+ <link rel="bookmark" href="https://bugzilla.mozilla.org/show_bug.cgi?id=1283721" title="Bug 1283721: Incorrect positioning of orthogonal (horizontal-tb) block alongside vertical-rl floats" />
+ <link rel="help" href="http://www.w3.org/TR/css-writing-modes-3/#vertical-layout" title="7.1 Principles of Layout in Vertical Writing Modes" />
+ <link rel="match" href="ortho-htb-alongside-vrl-floats-010-ref.xht" />
+
+ <!--
+ The 'horizontal-tb' equivalent of this test is
+ http://www.gtalbot.org/BugzillaSection/Bug1283721-new-block-form-ctxt-alongside-floats-004.html
+ -->
+
+ <meta content="image" name="flags" />
+ <meta content="This test checks that non-positioned block boxes created after the float box flow vertically as if the float did not exist. In this test, the orange block box, which creates a new block formatting context, should flow next to the earliest float that offers sufficient (logical width) space: in this test, this is the blue rectangle." name="assert" />
+ <meta name="DC.date.created" content="2016-07-04T09:54:03+11:00" scheme="W3CDTF" />
+ <meta name="DC.date.modified" content="2016-07-21T09:54:03+11:00" scheme="W3CDTF" />
+
+ <style type="text/css"><![CDATA[
+ html
+ {
+ writing-mode: vertical-rl;
+ }
+
+ div
+ {
+ width: 100px;
+ }
+
+ div#first-blue-float
+ {
+ background-color: blue;
+ clear: left;
+ float: left;
+ height: 25%;
+ }
+
+ div#second-olive-float-with-clear
+ {
+ background-color: olive;
+ clear: left;
+ float: left;
+ height: 50%;
+ }
+
+ div#third-fuchsia-float-with-clear
+ {
+ background-color: fuchsia;
+ clear: left;
+ float: left;
+ height: 75%;
+ }
+
+ div#orange-horiz-tb
+ {
+ background-color: orange;
+ height: 50%;
+ writing-mode: horizontal-tb;
+ }
+ ]]></style>
+
+ </head>
+
+ <body>
+
+ <p><img src="support/ortho-htb-alongside-vrl-floats-002-exp-res.png" width="300" height="36" alt="Image download support must be enabled" /></p>
+
+ <!--
+ The image says:
+ Test passes if the orange rectangle
+ is below the blue rectangle.
+ -->
+
+ <div id="first-blue-float">&nbsp;</div>
+
+ <div id="second-olive-float-with-clear">&nbsp;</div>
+
+ <div id="third-fuchsia-float-with-clear">&nbsp;</div>
+
+ <div id="orange-horiz-tb">&nbsp;</div>
+
+ </body>
+</html>