diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-07 19:33:14 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-07 19:33:14 +0000 |
commit | 36d22d82aa202bb199967e9512281e9a53db42c9 (patch) | |
tree | 105e8c98ddea1c1e4784a60a5a6410fa416be2de /testing/web-platform/tests/css/css-grid/alignment/grid-self-alignment.html | |
parent | Initial commit. (diff) | |
download | firefox-esr-36d22d82aa202bb199967e9512281e9a53db42c9.tar.xz firefox-esr-36d22d82aa202bb199967e9512281e9a53db42c9.zip |
Adding upstream version 115.7.0esr.upstream/115.7.0esrupstream
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'testing/web-platform/tests/css/css-grid/alignment/grid-self-alignment.html')
-rw-r--r-- | testing/web-platform/tests/css/css-grid/alignment/grid-self-alignment.html | 249 |
1 files changed, 249 insertions, 0 deletions
diff --git a/testing/web-platform/tests/css/css-grid/alignment/grid-self-alignment.html b/testing/web-platform/tests/css/css-grid/alignment/grid-self-alignment.html new file mode 100644 index 0000000000..56ad9c6a12 --- /dev/null +++ b/testing/web-platform/tests/css/css-grid/alignment/grid-self-alignment.html @@ -0,0 +1,249 @@ +<!DOCTYPE html> +<link rel="help" href="https://drafts.csswg.org/css-grid-1/#grid-align"> +<meta name="assert" content="This test checks that the self-start/self-end alignment values are applied correctly in all writing-modes for inflow content."> +<style> +body { + line-height: 30px; +} +.grid { + position: relative; + display: inline-grid; + grid-template-columns: 20px; + grid-template-rows: 20px; + width: 20px; + height: 20px; + border: solid; + vertical-align: bottom; +} +.child { + background: green; + width: 10px; + height: 10px; +} +</style> +<script src="/resources/testharness.js"></script> +<script src="/resources/testharnessreport.js"></script> +<script src="/resources/check-layout-th.js"></script> +<body onload="checkLayout('.child')"> + +<div class="grid" style="writing-mode: horizontal-tb; direction: ltr;"> + <div class="child" style="writing-mode: horizontal-tb; direction: ltr; align-self: self-start; justify-self: self-start;" data-offset-x=0 data-offset-y=0></div> +</div> +<div class="grid" style="writing-mode: horizontal-tb; direction: ltr;"> + <div class="child" style="writing-mode: horizontal-tb; direction: ltr; align-self: self-end; justify-self: self-end;" data-offset-x=10 data-offset-y=10></div> +</div> +<div class="grid" style="writing-mode: horizontal-tb; direction: ltr;"> + <div class="child" style="writing-mode: horizontal-tb; direction: rtl; align-self: self-start; justify-self: self-start;" data-offset-x=10 data-offset-y=0></div> +</div> +<div class="grid" style="writing-mode: horizontal-tb; direction: ltr;"> + <div class="child" style="writing-mode: horizontal-tb; direction: rtl; align-self: self-end; justify-self: self-end;" data-offset-x=0 data-offset-y=10></div> +</div> +<div class="grid" style="writing-mode: horizontal-tb; direction: ltr;"> + <div class="child" style="writing-mode: vertical-lr; direction: ltr; align-self: self-start; justify-self: self-start;" data-offset-x=0 data-offset-y=0></div> +</div> +<div class="grid" style="writing-mode: horizontal-tb; direction: ltr;"> + <div class="child" style="writing-mode: vertical-lr; direction: ltr; align-self: self-end; justify-self: self-end;" data-offset-x=10 data-offset-y=10></div> +</div> +<div class="grid" style="writing-mode: horizontal-tb; direction: ltr;"> + <div class="child" style="writing-mode: vertical-lr; direction: rtl; align-self: self-start; justify-self: self-start;" data-offset-x=0 data-offset-y=10></div> +</div> +<div class="grid" style="writing-mode: horizontal-tb; direction: ltr;"> + <div class="child" style="writing-mode: vertical-lr; direction: rtl; align-self: self-end; justify-self: self-end;" data-offset-x=10 data-offset-y=0></div> +</div> +<div class="grid" style="writing-mode: horizontal-tb; direction: ltr;"> + <div class="child" style="writing-mode: vertical-rl; direction: ltr; align-self: self-start; justify-self: self-start;" data-offset-x=10 data-offset-y=0></div> +</div> +<div class="grid" style="writing-mode: horizontal-tb; direction: ltr;"> + <div class="child" style="writing-mode: vertical-rl; direction: ltr; align-self: self-end; justify-self: self-end;" data-offset-x=0 data-offset-y=10></div> +</div> +<div class="grid" style="writing-mode: horizontal-tb; direction: ltr;"> + <div class="child" style="writing-mode: vertical-rl; direction: rtl; align-self: self-start; justify-self: self-start;" data-offset-x=10 data-offset-y=10></div> +</div> +<div class="grid" style="writing-mode: horizontal-tb; direction: ltr;"> + <div class="child" style="writing-mode: vertical-rl; direction: rtl; align-self: self-end; justify-self: self-end;" data-offset-x=0 data-offset-y=0></div> +</div> +<br> +<div class="grid" style="writing-mode: horizontal-tb; direction: rtl;"> + <div class="child" style="writing-mode: horizontal-tb; direction: ltr; align-self: self-start; justify-self: self-start;" data-offset-x=0 data-offset-y=0></div> +</div> +<div class="grid" style="writing-mode: horizontal-tb; direction: rtl;"> + <div class="child" style="writing-mode: horizontal-tb; direction: ltr; align-self: self-end; justify-self: self-end;" data-offset-x=10 data-offset-y=10></div> +</div> +<div class="grid" style="writing-mode: horizontal-tb; direction: rtl;"> + <div class="child" style="writing-mode: horizontal-tb; direction: rtl; align-self: self-start; justify-self: self-start;" data-offset-x=10 data-offset-y=0></div> +</div> +<div class="grid" style="writing-mode: horizontal-tb; direction: rtl;"> + <div class="child" style="writing-mode: horizontal-tb; direction: rtl; align-self: self-end; justify-self: self-end;" data-offset-x=0 data-offset-y=10></div> +</div> +<div class="grid" style="writing-mode: horizontal-tb; direction: rtl;"> + <div class="child" style="writing-mode: vertical-lr; direction: ltr; align-self: self-start; justify-self: self-start;" data-offset-x=0 data-offset-y=0></div> +</div> +<div class="grid" style="writing-mode: horizontal-tb; direction: rtl;"> + <div class="child" style="writing-mode: vertical-lr; direction: ltr; align-self: self-end; justify-self: self-end;" data-offset-x=10 data-offset-y=10></div> +</div> +<div class="grid" style="writing-mode: horizontal-tb; direction: rtl;"> + <div class="child" style="writing-mode: vertical-lr; direction: rtl; align-self: self-start; justify-self: self-start;" data-offset-x=0 data-offset-y=10></div> +</div> +<div class="grid" style="writing-mode: horizontal-tb; direction: rtl;"> + <div class="child" style="writing-mode: vertical-lr; direction: rtl; align-self: self-end; justify-self: self-end;" data-offset-x=10 data-offset-y=0></div> +</div> +<div class="grid" style="writing-mode: horizontal-tb; direction: rtl;"> + <div class="child" style="writing-mode: vertical-rl; direction: ltr; align-self: self-start; justify-self: self-start;" data-offset-x=10 data-offset-y=0></div> +</div> +<div class="grid" style="writing-mode: horizontal-tb; direction: rtl;"> + <div class="child" style="writing-mode: vertical-rl; direction: ltr; align-self: self-end; justify-self: self-end;" data-offset-x=0 data-offset-y=10></div> +</div> +<div class="grid" style="writing-mode: horizontal-tb; direction: rtl;"> + <div class="child" style="writing-mode: vertical-rl; direction: rtl; align-self: self-start; justify-self: self-start;" data-offset-x=10 data-offset-y=10></div> +</div> +<div class="grid" style="writing-mode: horizontal-tb; direction: rtl;"> + <div class="child" style="writing-mode: vertical-rl; direction: rtl; align-self: self-end; justify-self: self-end;" data-offset-x=0 data-offset-y=0></div> +</div> +<br> +<div class="grid" style="writing-mode: vertical-lr; direction: ltr;"> + <div class="child" style="writing-mode: horizontal-tb; direction: ltr; align-self: self-start; justify-self: self-start;" data-offset-x=0 data-offset-y=0></div> +</div> +<div class="grid" style="writing-mode: vertical-lr; direction: ltr;"> + <div class="child" style="writing-mode: horizontal-tb; direction: ltr; align-self: self-end; justify-self: self-end;" data-offset-x=10 data-offset-y=10></div> +</div> +<div class="grid" style="writing-mode: vertical-lr; direction: ltr;"> + <div class="child" style="writing-mode: horizontal-tb; direction: rtl; align-self: self-start; justify-self: self-start;" data-offset-x=10 data-offset-y=0></div> +</div> +<div class="grid" style="writing-mode: vertical-lr; direction: ltr;"> + <div class="child" style="writing-mode: horizontal-tb; direction: rtl; align-self: self-end; justify-self: self-end;" data-offset-x=0 data-offset-y=10></div> +</div> +<div class="grid" style="writing-mode: vertical-lr; direction: ltr;"> + <div class="child" style="writing-mode: vertical-lr; direction: ltr; align-self: self-start; justify-self: self-start;" data-offset-x=0 data-offset-y=0></div> +</div> +<div class="grid" style="writing-mode: vertical-lr; direction: ltr;"> + <div class="child" style="writing-mode: vertical-lr; direction: ltr; align-self: self-end; justify-self: self-end;" data-offset-x=10 data-offset-y=10></div> +</div> +<div class="grid" style="writing-mode: vertical-lr; direction: ltr;"> + <div class="child" style="writing-mode: vertical-lr; direction: rtl; align-self: self-start; justify-self: self-start;" data-offset-x=0 data-offset-y=10></div> +</div> +<div class="grid" style="writing-mode: vertical-lr; direction: ltr;"> + <div class="child" style="writing-mode: vertical-lr; direction: rtl; align-self: self-end; justify-self: self-end;" data-offset-x=10 data-offset-y=0></div> +</div> +<div class="grid" style="writing-mode: vertical-lr; direction: ltr;"> + <div class="child" style="writing-mode: vertical-rl; direction: ltr; align-self: self-start; justify-self: self-start;" data-offset-x=10 data-offset-y=0></div> +</div> +<div class="grid" style="writing-mode: vertical-lr; direction: ltr;"> + <div class="child" style="writing-mode: vertical-rl; direction: ltr; align-self: self-end; justify-self: self-end;" data-offset-x=0 data-offset-y=10></div> +</div> +<div class="grid" style="writing-mode: vertical-lr; direction: ltr;"> + <div class="child" style="writing-mode: vertical-rl; direction: rtl; align-self: self-start; justify-self: self-start;" data-offset-x=10 data-offset-y=10></div> +</div> +<div class="grid" style="writing-mode: vertical-lr; direction: ltr;"> + <div class="child" style="writing-mode: vertical-rl; direction: rtl; align-self: self-end; justify-self: self-end;" data-offset-x=0 data-offset-y=0></div> +</div> +<br> +<div class="grid" style="writing-mode: vertical-lr; direction: rtl;"> + <div class="child" style="writing-mode: horizontal-tb; direction: ltr; align-self: self-start; justify-self: self-start;" data-offset-x=0 data-offset-y=0></div> +</div> +<div class="grid" style="writing-mode: vertical-lr; direction: rtl;"> + <div class="child" style="writing-mode: horizontal-tb; direction: ltr; align-self: self-end; justify-self: self-end;" data-offset-x=10 data-offset-y=10></div> +</div> +<div class="grid" style="writing-mode: vertical-lr; direction: rtl;"> + <div class="child" style="writing-mode: horizontal-tb; direction: rtl; align-self: self-start; justify-self: self-start;" data-offset-x=10 data-offset-y=0></div> +</div> +<div class="grid" style="writing-mode: vertical-lr; direction: rtl;"> + <div class="child" style="writing-mode: horizontal-tb; direction: rtl; align-self: self-end; justify-self: self-end;" data-offset-x=0 data-offset-y=10></div> +</div> +<div class="grid" style="writing-mode: vertical-lr; direction: rtl;"> + <div class="child" style="writing-mode: vertical-lr; direction: ltr; align-self: self-start; justify-self: self-start;" data-offset-x=0 data-offset-y=0></div> +</div> +<div class="grid" style="writing-mode: vertical-lr; direction: rtl;"> + <div class="child" style="writing-mode: vertical-lr; direction: ltr; align-self: self-end; justify-self: self-end;" data-offset-x=10 data-offset-y=10></div> +</div> +<div class="grid" style="writing-mode: vertical-lr; direction: rtl;"> + <div class="child" style="writing-mode: vertical-lr; direction: rtl; align-self: self-start; justify-self: self-start;" data-offset-x=0 data-offset-y=10></div> +</div> +<div class="grid" style="writing-mode: vertical-lr; direction: rtl;"> + <div class="child" style="writing-mode: vertical-lr; direction: rtl; align-self: self-end; justify-self: self-end;" data-offset-x=10 data-offset-y=0></div> +</div> +<div class="grid" style="writing-mode: vertical-lr; direction: rtl;"> + <div class="child" style="writing-mode: vertical-rl; direction: ltr; align-self: self-start; justify-self: self-start;" data-offset-x=10 data-offset-y=0></div> +</div> +<div class="grid" style="writing-mode: vertical-lr; direction: rtl;"> + <div class="child" style="writing-mode: vertical-rl; direction: ltr; align-self: self-end; justify-self: self-end;" data-offset-x=0 data-offset-y=10></div> +</div> +<div class="grid" style="writing-mode: vertical-lr; direction: rtl;"> + <div class="child" style="writing-mode: vertical-rl; direction: rtl; align-self: self-start; justify-self: self-start;" data-offset-x=10 data-offset-y=10></div> +</div> +<div class="grid" style="writing-mode: vertical-lr; direction: rtl;"> + <div class="child" style="writing-mode: vertical-rl; direction: rtl; align-self: self-end; justify-self: self-end;" data-offset-x=0 data-offset-y=0></div> +</div> +<br> +<div class="grid" style="writing-mode: vertical-rl; direction: ltr;"> + <div class="child" style="writing-mode: horizontal-tb; direction: ltr; align-self: self-start; justify-self: self-start;" data-offset-x=0 data-offset-y=0></div> +</div> +<div class="grid" style="writing-mode: vertical-rl; direction: ltr;"> + <div class="child" style="writing-mode: horizontal-tb; direction: ltr; align-self: self-end; justify-self: self-end;" data-offset-x=10 data-offset-y=10></div> +</div> +<div class="grid" style="writing-mode: vertical-rl; direction: ltr;"> + <div class="child" style="writing-mode: horizontal-tb; direction: rtl; align-self: self-start; justify-self: self-start;" data-offset-x=10 data-offset-y=0></div> +</div> +<div class="grid" style="writing-mode: vertical-rl; direction: ltr;"> + <div class="child" style="writing-mode: horizontal-tb; direction: rtl; align-self: self-end; justify-self: self-end;" data-offset-x=0 data-offset-y=10></div> +</div> +<div class="grid" style="writing-mode: vertical-rl; direction: ltr;"> + <div class="child" style="writing-mode: vertical-lr; direction: ltr; align-self: self-start; justify-self: self-start;" data-offset-x=0 data-offset-y=0></div> +</div> +<div class="grid" style="writing-mode: vertical-rl; direction: ltr;"> + <div class="child" style="writing-mode: vertical-lr; direction: ltr; align-self: self-end; justify-self: self-end;" data-offset-x=10 data-offset-y=10></div> +</div> +<div class="grid" style="writing-mode: vertical-rl; direction: ltr;"> + <div class="child" style="writing-mode: vertical-lr; direction: rtl; align-self: self-start; justify-self: self-start;" data-offset-x=0 data-offset-y=10></div> +</div> +<div class="grid" style="writing-mode: vertical-rl; direction: ltr;"> + <div class="child" style="writing-mode: vertical-lr; direction: rtl; align-self: self-end; justify-self: self-end;" data-offset-x=10 data-offset-y=0></div> +</div> +<div class="grid" style="writing-mode: vertical-rl; direction: ltr;"> + <div class="child" style="writing-mode: vertical-rl; direction: ltr; align-self: self-start; justify-self: self-start;" data-offset-x=10 data-offset-y=0></div> +</div> +<div class="grid" style="writing-mode: vertical-rl; direction: ltr;"> + <div class="child" style="writing-mode: vertical-rl; direction: ltr; align-self: self-end; justify-self: self-end;" data-offset-x=0 data-offset-y=10></div> +</div> +<div class="grid" style="writing-mode: vertical-rl; direction: ltr;"> + <div class="child" style="writing-mode: vertical-rl; direction: rtl; align-self: self-start; justify-self: self-start;" data-offset-x=10 data-offset-y=10></div> +</div> +<div class="grid" style="writing-mode: vertical-rl; direction: ltr;"> + <div class="child" style="writing-mode: vertical-rl; direction: rtl; align-self: self-end; justify-self: self-end;" data-offset-x=0 data-offset-y=0></div> +</div> +<br> +<div class="grid" style="writing-mode: vertical-rl; direction: rtl;"> + <div class="child" style="writing-mode: horizontal-tb; direction: ltr; align-self: self-start; justify-self: self-start;" data-offset-x=0 data-offset-y=0></div> +</div> +<div class="grid" style="writing-mode: vertical-rl; direction: rtl;"> + <div class="child" style="writing-mode: horizontal-tb; direction: ltr; align-self: self-end; justify-self: self-end;" data-offset-x=10 data-offset-y=10></div> +</div> +<div class="grid" style="writing-mode: vertical-rl; direction: rtl;"> + <div class="child" style="writing-mode: horizontal-tb; direction: rtl; align-self: self-start; justify-self: self-start;" data-offset-x=10 data-offset-y=0></div> +</div> +<div class="grid" style="writing-mode: vertical-rl; direction: rtl;"> + <div class="child" style="writing-mode: horizontal-tb; direction: rtl; align-self: self-end; justify-self: self-end;" data-offset-x=0 data-offset-y=10></div> +</div> +<div class="grid" style="writing-mode: vertical-rl; direction: rtl;"> + <div class="child" style="writing-mode: vertical-lr; direction: ltr; align-self: self-start; justify-self: self-start;" data-offset-x=0 data-offset-y=0></div> +</div> +<div class="grid" style="writing-mode: vertical-rl; direction: rtl;"> + <div class="child" style="writing-mode: vertical-lr; direction: ltr; align-self: self-end; justify-self: self-end;" data-offset-x=10 data-offset-y=10></div> +</div> +<div class="grid" style="writing-mode: vertical-rl; direction: rtl;"> + <div class="child" style="writing-mode: vertical-lr; direction: rtl; align-self: self-start; justify-self: self-start;" data-offset-x=0 data-offset-y=10></div> +</div> +<div class="grid" style="writing-mode: vertical-rl; direction: rtl;"> + <div class="child" style="writing-mode: vertical-lr; direction: rtl; align-self: self-end; justify-self: self-end;" data-offset-x=10 data-offset-y=0></div> +</div> +<div class="grid" style="writing-mode: vertical-rl; direction: rtl;"> + <div class="child" style="writing-mode: vertical-rl; direction: ltr; align-self: self-start; justify-self: self-start;" data-offset-x=10 data-offset-y=0></div> +</div> +<div class="grid" style="writing-mode: vertical-rl; direction: rtl;"> + <div class="child" style="writing-mode: vertical-rl; direction: ltr; align-self: self-end; justify-self: self-end;" data-offset-x=0 data-offset-y=10></div> +</div> +<div class="grid" style="writing-mode: vertical-rl; direction: rtl;"> + <div class="child" style="writing-mode: vertical-rl; direction: rtl; align-self: self-start; justify-self: self-start;" data-offset-x=10 data-offset-y=10></div> +</div> +<div class="grid" style="writing-mode: vertical-rl; direction: rtl;"> + <div class="child" style="writing-mode: vertical-rl; direction: rtl; align-self: self-end; justify-self: self-end;" data-offset-x=0 data-offset-y=0></div> +</div> |