summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/css/css-contain/reference/contain-subgrid-001.html
diff options
context:
space:
mode:
Diffstat (limited to 'testing/web-platform/tests/css/css-contain/reference/contain-subgrid-001.html')
-rw-r--r--testing/web-platform/tests/css/css-contain/reference/contain-subgrid-001.html35
1 files changed, 35 insertions, 0 deletions
diff --git a/testing/web-platform/tests/css/css-contain/reference/contain-subgrid-001.html b/testing/web-platform/tests/css/css-contain/reference/contain-subgrid-001.html
new file mode 100644
index 0000000000..ab0d1fede5
--- /dev/null
+++ b/testing/web-platform/tests/css/css-contain/reference/contain-subgrid-001.html
@@ -0,0 +1,35 @@
+<!doctype html>
+<html lang=en>
+ <meta charset=utf-8>
+ <title>CSS-contain reference: layout/paint containment on subgrid</title>
+ <link rel="author" title="Mats Palmgren" href="mailto:mats@mozilla.com">
+
+<style>
+.grid {
+ display: grid;
+ width: 40px;
+ height: 40px;
+ grid: [a] repeat(2,15px) [b] / [a] repeat(2,15px) [b];
+ gap: 10px;
+}
+
+.subgrid {
+ display: grid;
+ grid: none;
+ background: lightgrey;
+ grid-area:1/1/3/3;
+}
+
+.layout { contain: layout; }
+.paint { contain: paint; }
+
+.inner {
+ background: blue;
+ grid-area:a/a/b/b;
+}
+</style>
+
+<div class="grid"><div class="subgrid layout"><div class="inner"></div></div></div>
+<div class="grid"><div class="subgrid paint"><div class="inner"></div></div></div>
+<div class="grid"><div class="subgrid layout"><div class="inner"></div></div></div>
+<div class="grid"><div class="subgrid paint"><div class="inner"></div></div></div>