summaryrefslogtreecommitdiffstats
path: root/layout/reftests/css-grid/grid-track-sizing-001.html
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-19 00:47:55 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-19 00:47:55 +0000
commit26a029d407be480d791972afb5975cf62c9360a6 (patch)
treef435a8308119effd964b339f76abb83a57c29483 /layout/reftests/css-grid/grid-track-sizing-001.html
parentInitial commit. (diff)
downloadfirefox-e51783d008170d9ab27d25da98ca3a38b0a41b67.tar.xz
firefox-e51783d008170d9ab27d25da98ca3a38b0a41b67.zip
Adding upstream version 124.0.1.upstream/124.0.1
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'layout/reftests/css-grid/grid-track-sizing-001.html')
-rw-r--r--layout/reftests/css-grid/grid-track-sizing-001.html42
1 files changed, 42 insertions, 0 deletions
diff --git a/layout/reftests/css-grid/grid-track-sizing-001.html b/layout/reftests/css-grid/grid-track-sizing-001.html
new file mode 100644
index 0000000000..9cd36835d8
--- /dev/null
+++ b/layout/reftests/css-grid/grid-track-sizing-001.html
@@ -0,0 +1,42 @@
+<!DOCTYPE HTML>
+<!--
+ Any copyright is dedicated to the Public Domain.
+ http://creativecommons.org/publicdomain/zero/1.0/
+-->
+<html><head>
+<meta charset="utf-8">
+<title>Test simple track sizing and grid item layout</title>
+<style>
+html,body {
+ color:black; background-color:white; font-size:16px; padding:0; margin:0;
+}
+span {
+ border: 3px dashed;
+ margin:3px 5px 7px 11px;
+}
+.grid {
+ display: grid;
+ grid-auto-flow: column;
+ grid-template-columns: 37px 57px 73px;
+ grid-auto-rows: 47px;
+ grid-auto-columns: 53px;
+}
+span.bg {
+ background: lime;
+ border: 0 none;
+}
+</style>
+</head>
+<body>
+<div class="grid">
+ <span style="grid-column: 1; grid-row: 2;" class="bg"></span>
+ <span style="grid-column: 1; grid-row: 2;">1</span>
+ <span style="grid-column: 2; grid-row: 1;" class="bg"></span>
+ <span style="grid-column: 2; grid-row: 1;">2</span>
+ <span style="grid-column: 3; grid-row: 1;" class="bg"></span>
+ <span style="grid-column: 3; grid-row: 1; margin:0">3</span>
+ <span style="grid-column: 1 / span 2; margin-top:0; width:500px" class="bg">4</span>
+ <span style="grid-column: 1 / span 2; margin:0; height:10px;" class="bg">5</span>
+</div>
+</body>
+</html>