diff options
Diffstat (limited to 'layout/reftests/css-grid/grid-track-sizing-001.html')
-rw-r--r-- | layout/reftests/css-grid/grid-track-sizing-001.html | 42 |
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> |