summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/css/css-grid/masonry/tentative/masonry-not-inhibited-001.html
diff options
context:
space:
mode:
Diffstat (limited to 'testing/web-platform/tests/css/css-grid/masonry/tentative/masonry-not-inhibited-001.html')
-rw-r--r--testing/web-platform/tests/css/css-grid/masonry/tentative/masonry-not-inhibited-001.html54
1 files changed, 54 insertions, 0 deletions
diff --git a/testing/web-platform/tests/css/css-grid/masonry/tentative/masonry-not-inhibited-001.html b/testing/web-platform/tests/css/css-grid/masonry/tentative/masonry-not-inhibited-001.html
new file mode 100644
index 0000000000..54499d3d69
--- /dev/null
+++ b/testing/web-platform/tests/css/css-grid/masonry/tentative/masonry-not-inhibited-001.html
@@ -0,0 +1,54 @@
+<!DOCTYPE HTML>
+<meta charset="utf-8">
+<title>CSS Grid Test: Masonry layout shouldn't be inhibited simply due to being an independent formatting context (unlike subgrid)</title>
+<link rel="author" title="Daniel Holbert" href="mailto:dholbert@mozilla.com">
+<link rel="help" href="https://drafts.csswg.org/css-grid-3/">
+<link rel="match" href="masonry-not-inhibited-001-ref.html">
+<style>
+grid {
+ vertical-align: top;
+ display: inline-grid;
+ grid-template-columns: 60px 60px;
+ grid-template-rows: masonry;
+ border: 2px solid black;
+}
+.overflowSet {
+ overflow: hidden;
+}
+.containSet {
+ contain: layout;
+}
+item {
+ width: 60px;
+ height: 30px;
+ background: cyan;
+}
+.tall {
+ /* This item is taller than the others, which lets us know if masonry
+ layout is being applied or not. If we're using masonry, then the second
+ and third items will stack in the same column. If not, then the third
+ item will automatically fill in below this tall item. */
+ height: 60px;
+ background: tan;
+}
+</style>
+<grid>
+ <item class="tall"></item>
+ <item></item>
+ <item></item>
+</grid>
+<grid class="overflowSet">
+ <item class="tall"></item>
+ <item></item>
+ <item></item>
+</grid>
+<grid class="containSet">
+ <item class="tall"></item>
+ <item></item>
+ <item></item>
+</grid>
+<grid class="containSet overflowSet">
+ <item class="tall"></item>
+ <item></item>
+ <item></item>
+</grid>