summaryrefslogtreecommitdiffstats
path: root/layout/reftests/css-grid/grid-flex-min-sizing-001.html
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-28 14:29:10 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-28 14:29:10 +0000
commit2aa4a82499d4becd2284cdb482213d541b8804dd (patch)
treeb80bf8bf13c3766139fbacc530efd0dd9d54394c /layout/reftests/css-grid/grid-flex-min-sizing-001.html
parentInitial commit. (diff)
downloadfirefox-2aa4a82499d4becd2284cdb482213d541b8804dd.tar.xz
firefox-2aa4a82499d4becd2284cdb482213d541b8804dd.zip
Adding upstream version 86.0.1.upstream/86.0.1upstream
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'layout/reftests/css-grid/grid-flex-min-sizing-001.html')
-rw-r--r--layout/reftests/css-grid/grid-flex-min-sizing-001.html343
1 files changed, 343 insertions, 0 deletions
diff --git a/layout/reftests/css-grid/grid-flex-min-sizing-001.html b/layout/reftests/css-grid/grid-flex-min-sizing-001.html
new file mode 100644
index 0000000000..2c990faf8b
--- /dev/null
+++ b/layout/reftests/css-grid/grid-flex-min-sizing-001.html
@@ -0,0 +1,343 @@
+<!DOCTYPE HTML>
+<!--
+ Any copyright is dedicated to the Public Domain.
+ http://creativecommons.org/publicdomain/zero/1.0/
+-->
+<html><head>
+ <meta charset="utf-8">
+ <title>CSS Grid Test: flex/auto min-sizing</title>
+ <link rel="author" title="Mats Palmgren" href="https://bugzilla.mozilla.org/show_bug.cgi?id=1151212">
+ <link rel="help" href="https://drafts.csswg.org/css-grid/#valdef-grid-template-columns-minmax">
+ <link rel="match" href="grid-flex-min-sizing-001-ref.html">
+ <style type="text/css">
+body,html { color:black; background:white; font-family:monospace; font-size:16px; padding:0; margin:0; }
+
+.grid {
+ display: grid;
+ border: 1px solid;
+ float: left;
+ min-width:100px;
+}
+.fixed .grid {
+ width:140px;
+}
+
+/*
+ * NOTE Due to a spec change, 'fr' min-sizing inside minmax() is now
+ * invalid, so they were replaced in this test with 'auto' instead (for now).
+ */
+
+.g1 {
+ grid-template-columns: minmax(auto,min-content)
+ minmax(auto,0)
+ minmax(auto,0)
+ 1fr;
+}
+
+.g2 {
+ grid-template-columns: minmax(auto,max-content)
+ minmax(auto,0)
+ minmax(auto,0)
+ 1fr;
+}
+
+.g3 {
+ grid-template-columns: minmax(auto,auto)
+ minmax(auto,0)
+ minmax(auto,0)
+ 1fr;
+}
+
+.g4 {
+ grid-template-columns: minmax(auto,0)
+ minmax(auto,0)
+ minmax(auto,0)
+ 1fr;
+}
+
+.g5 {
+ grid-template-columns: minmax(20px,0)
+ minmax(auto,0)
+ minmax(auto,0)
+ 1fr;
+}
+
+.g6 {
+ grid-template-columns: minmax(auto,0)
+ minmax(auto,0)
+ minmax(auto,0)
+ 20px;
+}
+
+.g7 {
+ grid-template-columns: minmax(20px,1fr)
+ minmax(auto,0)
+ minmax(auto,0)
+ 20px;
+}
+
+.g8 {
+ grid-template-columns: minmax(auto,1fr)
+ minmax(auto,0)
+ minmax(auto,0)
+ 20px;
+}
+
+.g9 {
+ grid-template-columns: 20px
+ 30px
+ minmax(auto,0)
+ 10px;
+}
+
+.gA {
+ grid-template-columns: minmax(auto,0)
+ minmax(min-content,40px)
+ minmax(auto,0)
+ 20px;
+}
+
+.gB {
+ grid-template-columns: minmax(auto,0)
+ minmax(auto,40px)
+ minmax(auto,0)
+ 20px;
+}
+
+.gC {
+ grid-template-columns: minmax(auto,20px)
+ minmax(auto,40px)
+ minmax(auto,0)
+ 20px;
+}
+
+.gD {
+ grid-template-columns: minmax(auto,20px)
+ minmax(auto,40px)
+ minmax(auto,0)
+ min-content;
+}
+
+.gE {
+ grid-template-columns: minmax(auto,20px)
+ minmax(auto,40px)
+ minmax(auto,20px)
+ auto;
+}
+
+.gF {
+ grid-template-columns: minmax(auto,20px)
+ minmax(min-content,max-content)
+ minmax(auto,40px)
+ auto;
+}
+
+
+.t { grid-column: span 3; border:2px solid; }
+.d1 { grid-column: 1 / span 2; background: grey; }
+.d3 { grid-column: 3 / span 2; background: blue; }
+div { min-width:0; min-height:10px; }
+t { display:inline-block; width:20px; }
+
+ </style>
+</head>
+<body>
+
+
+<div class="g1 grid">
+ <div class="t"><t>1 </t><t>2 </t><t>3 </t><t>4 </t><t>5</t></div>
+ <div class="d1"></div>
+ <div class="d3"></div>
+</div>
+
+<div class="g2 grid">
+ <div class="t"><t>1 </t><t>2 </t><t>3 </t><t>4 </t><t>5</t></div>
+ <div class="d1"></div>
+ <div class="d3"></div>
+</div>
+
+<div class="g3 grid">
+ <div class="t"><t>1 </t><t>2 </t><t>3 </t><t>4 </t><t>5</t></div>
+ <div class="d1"></div>
+ <div class="d3"></div>
+</div>
+
+<div class="g4 grid">
+ <div class="t"><t>1 </t><t>2 </t><t>3 </t><t>4 </t><t>5</t></div>
+ <div class="d1"></div>
+ <div class="d3"></div>
+</div>
+
+<div class="g5 grid">
+ <div class="t"><t>1 </t><t>2 </t><t>3 </t><t>4 </t><t>5</t></div>
+ <div class="d1"></div>
+ <div class="d3"></div>
+</div>
+
+<br clear="all" style="margin-top:100px">
+
+<div class="g6 grid">
+ <div class="t"><t>1 </t><t>2 </t><t>3 </t><t>4 </t><t>5</t></div>
+ <div class="d1"></div>
+ <div class="d3"></div>
+</div>
+
+<div class="g7 grid">
+ <div class="t"><t>1 </t><t>2 </t><t>3 </t><t>4 </t><t>5</t></div>
+ <div class="d1"></div>
+ <div class="d3"></div>
+</div>
+
+<div class="g8 grid">
+ <div class="t"><t>1 </t><t>2 </t><t>3 </t><t>4 </t><t>5</t></div>
+ <div class="d1"></div>
+ <div class="d3"></div>
+</div>
+
+<div class="g9 grid">
+ <div class="t"><t>1 </t><t>2 </t><t>3 </t><t>4 </t><t>5</t></div>
+ <div class="d1"></div>
+ <div class="d3"></div>
+</div>
+
+<br clear="all" style="margin-top:100px">
+
+<div class="gA grid">
+ <div class="t"><t>1 </t><t>2 </t><t>3 </t><t>4 </t><t>5</t></div>
+ <div class="d1"></div>
+ <div class="d3"></div>
+</div>
+
+<div class="gB grid">
+ <div class="t"><t>1 </t><t>2 </t><t>3 </t><t>4 </t><t>5</t></div>
+ <div class="d1"></div>
+ <div class="d3"></div>
+</div>
+
+<div class="gC grid">
+ <div class="t"><t>1 </t><t>2 </t><t>3 </t><t>4 </t><t>5</t></div>
+ <div class="d1"></div>
+ <div class="d3"></div>
+</div>
+
+<div class="gD grid">
+ <div class="t"><t>1 </t><t>2 </t><t>3 </t><t>4 </t><t>5</t></div>
+ <div class="d1"></div>
+ <div class="d3"></div>
+</div>
+
+<div class="gE grid">
+ <div class="t"><t>1 </t><t>2 </t><t>3 </t><t>4 </t><t>5</t></div>
+ <div class="d1"></div>
+ <div class="d3"></div>
+</div>
+
+<div class="gF grid">
+ <div class="t"><t>1 </t><t>2 </t><t>3 </t><t>4 </t><t>5</t></div>
+ <div class="d1"></div>
+ <div class="d3"></div>
+</div>
+
+<br clear="all" style="margin-top:100px">
+
+<span class="fixed">
+<div class="g1 grid">
+ <div class="t"><t>1 </t><t>2 </t><t>3 </t><t>4 </t><t>5</t></div>
+ <div class="d1"></div>
+ <div class="d3"></div>
+</div>
+
+<div class="g2 grid">
+ <div class="t"><t>1 </t><t>2 </t><t>3 </t><t>4 </t><t>5</t></div>
+ <div class="d1"></div>
+ <div class="d3"></div>
+</div>
+
+<div class="g3 grid">
+ <div class="t"><t>1 </t><t>2 </t><t>3 </t><t>4 </t><t>5</t></div>
+ <div class="d1"></div>
+ <div class="d3"></div>
+</div>
+
+<div class="g4 grid">
+ <div class="t"><t>1 </t><t>2 </t><t>3 </t><t>4 </t><t>5</t></div>
+ <div class="d1"></div>
+ <div class="d3"></div>
+</div>
+
+<div class="g5 grid">
+ <div class="t"><t>1 </t><t>2 </t><t>3 </t><t>4 </t><t>5</t></div>
+ <div class="d1"></div>
+ <div class="d3"></div>
+</div>
+
+<br clear="all" style="margin-top:100px">
+
+<div class="g6 grid">
+ <div class="t"><t>1 </t><t>2 </t><t>3 </t><t>4 </t><t>5</t></div>
+ <div class="d1"></div>
+ <div class="d3"></div>
+</div>
+
+<div class="g7 grid">
+ <div class="t"><t>1 </t><t>2 </t><t>3 </t><t>4 </t><t>5</t></div>
+ <div class="d1"></div>
+ <div class="d3"></div>
+</div>
+
+<div class="g8 grid">
+ <div class="t"><t>1 </t><t>2 </t><t>3 </t><t>4 </t><t>5</t></div>
+ <div class="d1"></div>
+ <div class="d3"></div>
+</div>
+
+<div class="g9 grid">
+ <div class="t"><t>1 </t><t>2 </t><t>3 </t><t>4 </t><t>5</t></div>
+ <div class="d1"></div>
+ <div class="d3"></div>
+</div>
+
+<br clear="all" style="margin-top:100px">
+
+<div class="gA grid">
+ <div class="t"><t>1 </t><t>2 </t><t>3 </t><t>4 </t><t>5</t></div>
+ <div class="d1"></div>
+ <div class="d3"></div>
+</div>
+
+<div class="gB grid">
+ <div class="t"><t>1 </t><t>2 </t><t>3 </t><t>4 </t><t>5</t></div>
+ <div class="d1"></div>
+ <div class="d3"></div>
+</div>
+
+<div class="gC grid">
+ <div class="t"><t>1 </t><t>2 </t><t>3 </t><t>4 </t><t>5</t></div>
+ <div class="d1"></div>
+ <div class="d3"></div>
+</div>
+
+<div class="gD grid">
+ <div class="t"><t>1 </t><t>2 </t><t>3 </t><t>4 </t><t>5</t></div>
+ <div class="d1"></div>
+ <div class="d3"></div>
+</div>
+
+<br clear="all" style="margin-top:100px">
+
+<div class="gE grid">
+ <div class="t"><t>1 </t><t>2 </t><t>3 </t><t>4 </t><t>5</t></div>
+ <div class="d1"></div>
+ <div class="d3"></div>
+</div>
+
+<div class="gF grid">
+ <div class="t"><t>1 </t><t>2 </t><t>3 </t><t>4 </t><t>5</t></div>
+ <div class="d1"></div>
+ <div class="d3"></div>
+</div>
+
+</span>
+
+</body>
+</html>