diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-19 01:47:29 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-19 01:47:29 +0000 |
commit | 0ebf5bdf043a27fd3dfb7f92e0cb63d88954c44d (patch) | |
tree | a31f07c9bcca9d56ce61e9a1ffd30ef350d513aa /testing/web-platform/tests/css/css-flexbox/flexbox-writing-mode-016-ref.html | |
parent | Initial commit. (diff) | |
download | firefox-esr-0ebf5bdf043a27fd3dfb7f92e0cb63d88954c44d.tar.xz firefox-esr-0ebf5bdf043a27fd3dfb7f92e0cb63d88954c44d.zip |
Adding upstream version 115.8.0esr.upstream/115.8.0esr
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'testing/web-platform/tests/css/css-flexbox/flexbox-writing-mode-016-ref.html')
-rw-r--r-- | testing/web-platform/tests/css/css-flexbox/flexbox-writing-mode-016-ref.html | 136 |
1 files changed, 136 insertions, 0 deletions
diff --git a/testing/web-platform/tests/css/css-flexbox/flexbox-writing-mode-016-ref.html b/testing/web-platform/tests/css/css-flexbox/flexbox-writing-mode-016-ref.html new file mode 100644 index 0000000000..c3a223389d --- /dev/null +++ b/testing/web-platform/tests/css/css-flexbox/flexbox-writing-mode-016-ref.html @@ -0,0 +1,136 @@ +<!DOCTYPE html> +<!-- + Any copyright is dedicated to the Public Domain. + http://creativecommons.org/publicdomain/zero/1.0/ +--> +<html> +<head> + <title>CSS Reftest Reference</title> + <meta charset="utf-8"> + <link rel="author" title="Daniel Holbert" href="mailto:dholbert@mozilla.com"> + <style> + .container { + display: block; + border: 2px solid purple; + margin: 3px; + /* This red should't be visible, because each container should shrinkwrap + its sole child (and the child should cover up this background). */ + background: red; + /* Float the containers, to test in "rows", with 1 row per writing-mode. */ + float: left; + } + br { clear: both; } + + .container > * { + width: 10px; + height: 10px; + background: teal; + border: 1px solid yellow; + } + .container > * > * { + background: pink; + height: 4px; + width: 4px; + border: 1px solid black; + } + + .pad_top { padding-top: 3px; } + .pad_right { padding-right: 4px; } + .pad_bottom { padding-bottom: 5px; } + .pad_left { padding-left: 6px; } + + .hl { writing-mode: horizontal-tb; direction: ltr; } + .hr { writing-mode: horizontal-tb; direction: rtl; } + .vl { writing-mode: vertical-lr; direction: ltr; } + .vr { writing-mode: vertical-rl; direction: ltr; } + .vl_rtl { writing-mode: vertical-lr; direction: rtl; } + .vr_rtl { writing-mode: vertical-rl; direction: rtl; } + </style> +</head> +<body> + <!-- Here, we test padding on each side of a flex item, across 6 different + writing-mode combinations (writing-mode X direction). --> + <div class="container hl"> + <div class="pad_top"><div></div></div> + </div> + <div class="container hl"> + <div class="pad_right"><div></div></div> + </div> + <div class="container hl"> + <div class="pad_bottom"><div></div></div> + </div> + <div class="container hl"> + <div class="pad_left"><div></div></div> + </div> + <br> + + <div class="container hr"> + <div class="pad_top"><div></div></div> + </div> + <div class="container hr"> + <div class="pad_right"><div></div></div> + </div> + <div class="container hr"> + <div class="pad_bottom"><div></div></div> + </div> + <div class="container hr"> + <div class="pad_left"><div></div></div> + </div> + <br> + + <div class="container vl"> + <div class="pad_top"><div></div></div> + </div> + <div class="container vl"> + <div class="pad_right"><div></div></div> + </div> + <div class="container vl"> + <div class="pad_bottom"><div></div></div> + </div> + <div class="container vl"> + <div class="pad_left"><div></div></div> + </div> + <br> + + <div class="container vr"> + <div class="pad_top"><div></div></div> + </div> + <div class="container vr"> + <div class="pad_right"><div></div></div> + </div> + <div class="container vr"> + <div class="pad_bottom"><div></div></div> + </div> + <div class="container vr"> + <div class="pad_left"><div></div></div> + </div> + <br> + + <div class="container vl_rtl"> + <div class="pad_top"><div></div></div> + </div> + <div class="container vl_rtl"> + <div class="pad_right"><div></div></div> + </div> + <div class="container vl_rtl"> + <div class="pad_bottom"><div></div></div> + </div> + <div class="container vl_rtl"> + <div class="pad_left"><div></div></div> + </div> + <br> + + <div class="container vr_rtl"> + <div class="pad_top"><div></div></div> + </div> + <div class="container vr_rtl"> + <div class="pad_right"><div></div></div> + </div> + <div class="container vr_rtl"> + <div class="pad_bottom"><div></div></div> + </div> + <div class="container vr_rtl"> + <div class="pad_left"><div></div></div> + </div> +</body> +</html> |