summaryrefslogtreecommitdiffstats
path: root/layout/reftests/box/box-as-grid-or-flex-item-1.html
diff options
context:
space:
mode:
Diffstat (limited to 'layout/reftests/box/box-as-grid-or-flex-item-1.html')
-rw-r--r--layout/reftests/box/box-as-grid-or-flex-item-1.html42
1 files changed, 42 insertions, 0 deletions
diff --git a/layout/reftests/box/box-as-grid-or-flex-item-1.html b/layout/reftests/box/box-as-grid-or-flex-item-1.html
new file mode 100644
index 0000000000..6eacbd94a3
--- /dev/null
+++ b/layout/reftests/box/box-as-grid-or-flex-item-1.html
@@ -0,0 +1,42 @@
+<!DOCTYPE html>
+<title>Test for bug 1580302</title>
+<style>
+ .grid, .flex {
+ width: 60px;
+ height: 60px;
+ border: 1px solid black;
+ }
+ .grid { display: grid; }
+ .flex { display: flex; }
+ .fCol { flex-direction: column; }
+
+ .item {
+ display: -moz-box;
+ background: lightblue;
+ }
+ .flexible {
+ flex: 1;
+ }
+</style>
+<body>
+ <!-- The item should fill the grid here (by virtue of justify-items/align-items
+ default behavior): -->
+ <div class="grid">
+ <div class="item">e</div>
+ </div>
+
+ <!-- For the rest, the item should fill the flex container in the cross axis,
+ and if it's flexible, also fill the container in the main axis. -->
+ <div class="flex">
+ <div class="item">e</div>
+ </div>
+ <div class="flex">
+ <div class="item flexible">e</div>
+ </div>
+ <div class="flex fCol">
+ <div class="item">e</div>
+ </div>
+ <div class="flex fCol">
+ <div class="item flexible">e</div>
+ </div>
+</body>