gecko-dev/layout/reftests/css-grid/grid-track-sizing-001.html

43 строки
1.2 KiB
HTML

<!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>