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/scrollbars-auto.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/scrollbars-auto.html')
-rw-r--r-- | testing/web-platform/tests/css/css-flexbox/scrollbars-auto.html | 95 |
1 files changed, 95 insertions, 0 deletions
diff --git a/testing/web-platform/tests/css/css-flexbox/scrollbars-auto.html b/testing/web-platform/tests/css/css-flexbox/scrollbars-auto.html new file mode 100644 index 0000000000..ed1ffb8d93 --- /dev/null +++ b/testing/web-platform/tests/css/css-flexbox/scrollbars-auto.html @@ -0,0 +1,95 @@ +<!DOCTYPE html> +<head> +<title>Auto scrollbars inside flexbox with direction and writing-mode</title> +<link rel="author" title="Google, Inc." href="http://www.google.com/"> +<link rel="match" href="scrollbars-auto-ref.html"> +<link rel="help" href="https://drafts.csswg.org/css-flexbox/"> + +<script src="support/scrollbars.js"></script> + +<style> +.horizontal-header { + width: 120px; +} +.vertical-header { + width: 60px; +} +.container-row { + display: flex; + flex-direction: row; + align-items: flex-start; + justify-content: flex-start; +} +.container { + flex: none; + margin: 5px; +} +.ltr { + direction: ltr; +} +.rtl { + direction: rtl; +} +.horizontal { + writing-mode: horizontal-tb; +} +.flipped-blocks { + writing-mode: vertical-rl; +} +.flipped-lines { + writing-mode: vertical-lr; +} +.flex { + border: 2px solid red; + display: flex; + overflow: auto; + max-width: 100px; + max-height: 100px; +} +.column { + flex-direction: column; +} +.column-reverse { + flex-direction: column-reverse; +} +.row { + flex-direction: row; +} +.row-reverse { + flex-direction: row-reverse; +} +.flex > .leaf1, .flex > .leaf2, .flex > .leaf3 { + flex: none; + width: 30px; + height: 30px; + border: 2px solid blue; + margin: 3px; + display: flex; + flex-direction: column; + justify-content: center; +} +.flex > div > div { + font-size: 20px; + text-align: center; + flex: none; +} +</style> + +</head> + +<div class="container-row"> + <div class="vertical-header ltr horizontal"></div> + <div class="horizontal-header ltr horizontal">ltr<br>horizontal-tb</div> + <div class="vertical-header ltr flipped-blocks">ltr<br>vertical-rl</div> + <div class="vertical-header ltr flipped-blocks">ltr<br>vertical-lr</div> + <div class="horizontal-header rtl horizontal">rtl<br>horizontal-tb</div> + <div class="vertical-header rtl flipped-blocks">rtl<br>vertical-rl</div> + <div class="vertical-header rtl flipped-blocks">rtl<br>vertical-lr</div> +</div> + +<script> +flexDirections.forEach((flexDirection) => { + var containerRow = createContainerRow(flexDirection); + document.body.appendChild(containerRow); +}); +</script> |