summaryrefslogtreecommitdiffstats
path: root/layout/reftests/css-grid/grid-track-sizing-001.html
blob: 9cd36835d8e89ccc9ece9f9a587bc675b6d22427 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
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>