2015-09-04 23:06:58 +03:00
|
|
|
<!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: Intrinsic track sizing (w/o span:1, with flex)</title>
|
|
|
|
<link rel="author" title="Mats Palmgren" href="https://bugzilla.mozilla.org/show_bug.cgi?id=1151212">
|
|
|
|
<style type="text/css">
|
|
|
|
body,html { color:black; background:white; font-family:monospace; font-size:16px; padding:0; margin:0; }
|
|
|
|
|
|
|
|
.grid {
|
|
|
|
position: relative;
|
|
|
|
display: grid;
|
|
|
|
border: 1px dashed;
|
|
|
|
width: 500px;
|
|
|
|
grid-template-columns: auto;
|
|
|
|
padding-bottom:10px;
|
2016-01-27 19:02:13 +03:00
|
|
|
justify-content: start;
|
|
|
|
align-content: start;
|
2015-09-04 23:06:58 +03:00
|
|
|
}
|
|
|
|
|
|
|
|
.d1 {
|
|
|
|
position: absolute;
|
|
|
|
bottom: 0;
|
|
|
|
background: grey;
|
|
|
|
}
|
|
|
|
.g1 .d1 {
|
|
|
|
width: 52px;
|
|
|
|
}
|
|
|
|
.g2 .d1 {
|
|
|
|
width: 56px;
|
|
|
|
}
|
|
|
|
.g2f .d1 {
|
|
|
|
width: 56px;
|
|
|
|
}
|
|
|
|
.g3 .d1 {
|
|
|
|
width: 56px;
|
|
|
|
}
|
|
|
|
.g4 .d1 {
|
|
|
|
width: 96px;
|
|
|
|
}
|
|
|
|
.g4f .d1 {
|
|
|
|
width: 104px;
|
|
|
|
}
|
|
|
|
.g5 .d1 {
|
|
|
|
width: 96px;
|
|
|
|
}
|
|
|
|
.g6 .d1 {
|
|
|
|
width: 69px;
|
|
|
|
}
|
|
|
|
.g6f .d1 {
|
|
|
|
width: 89px;
|
|
|
|
}
|
|
|
|
.g7 .d1 {
|
|
|
|
width: 69px;
|
|
|
|
}
|
|
|
|
.g8 .t {
|
|
|
|
width: 196px;
|
|
|
|
}
|
|
|
|
.g8 .d1 {
|
|
|
|
width: 200px;
|
|
|
|
}
|
|
|
|
.g9 .d1 {
|
|
|
|
width: 69px;
|
|
|
|
}
|
|
|
|
.gA .d1 {
|
|
|
|
width: 93px;
|
|
|
|
}
|
|
|
|
.gB .d1 {
|
|
|
|
width: 93px;
|
|
|
|
}
|
|
|
|
.gC .d1 {
|
|
|
|
width: 93px;
|
|
|
|
}
|
|
|
|
.gD .d1 {
|
|
|
|
width: 93px;
|
|
|
|
}
|
|
|
|
.d2 {
|
|
|
|
position: absolute;
|
|
|
|
bottom: 0;
|
|
|
|
right: 0;
|
|
|
|
background: blue;
|
|
|
|
}
|
|
|
|
.g1 .d2 {
|
|
|
|
width: 448px;
|
|
|
|
}
|
|
|
|
.g2 .d2 {
|
|
|
|
width: 444px;
|
|
|
|
}
|
|
|
|
.g2f .d2 {
|
|
|
|
width: 448px;
|
|
|
|
}
|
|
|
|
.g3 .d2 {
|
|
|
|
width: 444px;
|
|
|
|
}
|
|
|
|
.g4 .d2 {
|
|
|
|
width: 404px;
|
|
|
|
}
|
|
|
|
.g4f .d2 {
|
|
|
|
width: 396px;
|
|
|
|
}
|
|
|
|
.g5 .d2 {
|
|
|
|
width: 404px;
|
|
|
|
}
|
|
|
|
.g6 .d2 {
|
|
|
|
width: 431px;
|
|
|
|
}
|
|
|
|
.g6f .d2 {
|
|
|
|
width: 423px;
|
|
|
|
}
|
|
|
|
.g7 .d2 {
|
|
|
|
width: 431px;
|
|
|
|
}
|
|
|
|
.g8 .d2 {
|
|
|
|
width: 300px;
|
|
|
|
}
|
|
|
|
.g9 .d2 {
|
|
|
|
width: 431px;
|
|
|
|
}
|
|
|
|
.gA .d2 {
|
|
|
|
width: 407px;
|
|
|
|
}
|
|
|
|
.gB .d2 {
|
|
|
|
width: 407px;
|
|
|
|
}
|
|
|
|
.gC .d2 {
|
|
|
|
width: 407px;
|
|
|
|
}
|
|
|
|
.gD .d2 {
|
|
|
|
width: 407px;
|
|
|
|
}
|
|
|
|
|
|
|
|
.t { grid-column: span 1; border:2px solid; }
|
|
|
|
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="d2"></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="d2"></div>
|
|
|
|
</div>
|
|
|
|
<div class="g2f 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="d2"></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="d2"></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="d2"></div>
|
|
|
|
</div>
|
|
|
|
<div class="g4f 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="d2"></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="d2"></div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<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="d2"></div>
|
|
|
|
</div>
|
|
|
|
<div class="g6f 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="d2"></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="d2"></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="d2"></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="d2"></div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<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="d2"></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="d2"></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="d2"></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="d2"></div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
</body>
|
|
|
|
</html>
|