summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/css/css-layout-api/edges/scrollbar-ref.html
diff options
context:
space:
mode:
Diffstat (limited to 'testing/web-platform/tests/css/css-layout-api/edges/scrollbar-ref.html')
-rw-r--r--testing/web-platform/tests/css/css-layout-api/edges/scrollbar-ref.html159
1 files changed, 159 insertions, 0 deletions
diff --git a/testing/web-platform/tests/css/css-layout-api/edges/scrollbar-ref.html b/testing/web-platform/tests/css/css-layout-api/edges/scrollbar-ref.html
new file mode 100644
index 0000000000..cc41754c08
--- /dev/null
+++ b/testing/web-platform/tests/css/css-layout-api/edges/scrollbar-ref.html
@@ -0,0 +1,159 @@
+<!DOCTYPE html>
+<style>
+td { text-align: center; }
+
+.parent {
+ box-sizing: border-box;
+ width: 50px;
+ height: 50px;
+ border: solid;
+ position: relative;
+}
+
+.child {
+ position: absolute;
+ width: 10px;
+ height: 10px;
+ background: green;
+}
+
+.top-left {
+ top: 0;
+ left: 0;
+}
+
+.top-right {
+ top: 0;
+ right: 0;
+}
+
+.bottom-left {
+ bottom: 0;
+ left: 0;
+}
+
+.bottom-right {
+ bottom: 0;
+ right: 0;
+}
+</style>
+
+<table>
+ <tr>
+ <td></td>
+ <td colspan=2>LTR</td>
+ <td colspan=2>RTL</td>
+ </tr>
+ <tr>
+ <td></td>
+ <td>Y</td>
+ <td>X</td>
+ <td>Y</td>
+ <td>X</td>
+ </tr>
+ <tr>
+ <td>HTB</td>
+ <td>
+ <div class="parent" style="writing-mode: horizontal-tb; direction: ltr; overflow-y: scroll;">
+ <div class="child top-left"></div>
+ <div class="child top-right"></div>
+ <div class="child bottom-left"></div>
+ <div class="child bottom-right"></div>
+ </div>
+ </td>
+ <td>
+ <div class="parent" style="writing-mode: horizontal-tb; direction: ltr; overflow-x: scroll;">
+ <div class="child top-left"></div>
+ <div class="child top-right"></div>
+ <div class="child bottom-left"></div>
+ <div class="child bottom-right"></div>
+ </div>
+ </td>
+ <td>
+ <div class="parent" style="writing-mode: horizontal-tb; direction: rtl; overflow-y: scroll;">
+ <div class="child top-left"></div>
+ <div class="child top-right"></div>
+ <div class="child bottom-left"></div>
+ <div class="child bottom-right"></div>
+ </div>
+ </td>
+ <td>
+ <div class="parent" style="writing-mode: horizontal-tb; direction: rtl; overflow-x: scroll;">
+ <div class="child top-left"></div>
+ <div class="child top-right"></div>
+ <div class="child bottom-left"></div>
+ <div class="child bottom-right"></div>
+ </div>
+ </td>
+ </tr>
+ <tr>
+ <td>VRL</td>
+ <td>
+ <div class="parent" style="writing-mode: vertical-rl; direction: ltr; overflow-y: scroll;">
+ <div class="child top-left"></div>
+ <div class="child top-right"></div>
+ <div class="child bottom-left"></div>
+ <div class="child bottom-right"></div>
+ </div>
+ </td>
+ <td>
+ <div class="parent" style="writing-mode: vertical-rl; direction: ltr; overflow-x: scroll;">
+ <div class="child top-left"></div>
+ <div class="child top-right"></div>
+ <div class="child bottom-left"></div>
+ <div class="child bottom-right"></div>
+ </div>
+ </td>
+ <td>
+ <div class="parent" style="writing-mode: vertical-rl; direction: rtl; overflow-y: scroll;">
+ <div class="child top-left"></div>
+ <div class="child top-right"></div>
+ <div class="child bottom-left"></div>
+ <div class="child bottom-right"></div>
+ </div>
+ </td>
+ <td>
+ <div class="parent" style="writing-mode: vertical-rl; direction: rtl; overflow-x: scroll;">
+ <div class="child top-left"></div>
+ <div class="child top-right"></div>
+ <div class="child bottom-left"></div>
+ <div class="child bottom-right"></div>
+ </div>
+ </td>
+ </tr>
+ <tr>
+ <td>VLR</td>
+ <td>
+ <div class="parent" style="writing-mode: vertical-lr; direction: ltr; overflow-y: scroll;">
+ <div class="child top-left"></div>
+ <div class="child top-right"></div>
+ <div class="child bottom-left"></div>
+ <div class="child bottom-right"></div>
+ </div>
+ </td>
+ <td>
+ <div class="parent" style="writing-mode: vertical-lr; direction: ltr; overflow-x: scroll;">
+ <div class="child top-left"></div>
+ <div class="child top-right"></div>
+ <div class="child bottom-left"></div>
+ <div class="child bottom-right"></div>
+ </div>
+ </td>
+ <td>
+ <div class="parent" style="writing-mode: vertical-lr; direction: rtl; overflow-y: scroll;">
+ <div class="child top-left"></div>
+ <div class="child top-right"></div>
+ <div class="child bottom-left"></div>
+ <div class="child bottom-right"></div>
+ </div>
+ </td>
+ <td>
+ <div class="parent" style="writing-mode: vertical-lr; direction: rtl; overflow-x: scroll;">
+ <div class="child top-left"></div>
+ <div class="child top-right"></div>
+ <div class="child bottom-left"></div>
+ <div class="child bottom-right"></div>
+ </div>
+ </td>
+ </tr>
+</table>