blob: f49990e6c57ae6953971a999ae2cd9cadd6e59a8 [file] [log] [blame]
<!DOCTYPE html>
<html>
<head>
<link href="resources/grid.css" rel="stylesheet">
<style>
.grid {
/* Give an explicit size to the grid so that percentage grid tracks have a consistent resolution */
width: 800px;
height: 600px;
}
.gridItem {
-webkit-grid-column: 1;
-webkit-grid-row: 1;
width: 7px;
height: 11px;
}
.gridItem2 {
-webkit-grid-column: 2;
-webkit-grid-row: 2;
width: 17px;
height: 3px;
}
.gridWithFixed {
-webkit-grid-template-columns: 7px 11px;
-webkit-grid-template-rows: 17px 2px;
}
.gridWithPercent {
-webkit-grid-template-columns: 53% 99%;
-webkit-grid-template-rows: 27% 52%;
}
.gridWithAuto {
-webkit-grid-template-columns: auto auto;
-webkit-grid-template-rows: auto auto;
}
.gridWithEM {
-webkit-grid-template-columns: 10em 12em;
-webkit-grid-template-rows: 15em 17em;
font: 10px Ahem;
}
.gridWithNoneAndAuto {
-webkit-grid-template-columns: none auto;
-webkit-grid-template-rows: none auto;
}
.gridNoneWithAndFixed {
-webkit-grid-template-columns: none 15px;
-webkit-grid-template-rows: none 22px;
}
.gridWithThreeItems {
-webkit-grid-template-columns: 15px auto 10em;
-webkit-grid-template-rows: 12em 18px auto;
font: 10px Ahem;
}
.gridWithPercentAndViewportPercent {
-webkit-grid-template-columns: 50% 15vw;
-webkit-grid-template-rows: 35% 28vh;
}
.gridWithFitContentAndFitAvailable {
-webkit-grid-template-columns: -webkit-content-available;
-webkit-grid-template-rows: -webkit-fitcontent -webkit-fit-available;
}
.gridWithMinMaxContent {
-webkit-grid-template-columns: -webkit-min-content -webkit-max-content;
-webkit-grid-template-rows: -webkit-max-content -webkit-min-content;
}
.gridWithMinMaxAndFixed {
-webkit-grid-template-columns: minmax(45px, 30%) 15px;
-webkit-grid-template-rows: 12em minmax(35%, 10px);
font: 10px Ahem;
}
.gridWithMinMaxAndMinMaxContent {
-webkit-grid-template-columns: minmax(-webkit-min-content, 30%) 15px;
-webkit-grid-template-rows: 12em minmax(35%, -webkit-max-content);
font: 10px Ahem;
}
.gridWithFractionFraction {
-webkit-grid-template-columns: 2fr 3fr;
-webkit-grid-template-rows: 3fr 5fr;
}
.gridWithFractionMinMax {
-webkit-grid-template-columns: minmax(-webkit-min-content, 45px) 2fr;
-webkit-grid-template-rows: 3fr minmax(14px, -webkit-max-content);
}
.gridWithCalcCalc {
-webkit-grid-template-columns: calc(200px) calc(10em);
-webkit-grid-template-rows: calc(15em) calc(75px);
font: 10px Ahem;
}
.gridWithCalcAndFixed {
-webkit-grid-template-columns: calc(50%) 8em;
-webkit-grid-template-rows: 88px calc(25%);
font: 10px Ahem;
}
.gridWithCalcAndMinMax {
-webkit-grid-template-columns: calc(30px + 20%) minmax(-webkit-min-content, 80px);
-webkit-grid-template-rows: minmax(25%, -webkit-max-content) calc(10% - 7px);
}
.gridWithCalcInsideMinMax {
-webkit-grid-template-columns: minmax(calc(23px + 10%), 400px) 12em;
-webkit-grid-template-rows: calc(150px) minmax(5%, calc(50% - 125px));
font: 10px Ahem;
}
</style>
<script src="../../resources/js-test-pre.js"></script>
</head>
<body>
<div class="grid gridWithFixed" id="gridWithFixedElement"></div>
<div class="grid gridWithPercent" id="gridWithPercentElement"></div>
<div class="indefiniteSizeGrid gridWithPercent" id="gridWithPercentWithoutSize">
<div class="gridItem"></div>
</div>
<div class="grid gridWithAuto" id="gridWithAutoElement">
<div class="gridItem2"></div>
</div>
<div class="grid gridWithEM" id="gridWithEMElement"></div>
<div class="grid gridWithNoneAndAuto" id="gridWithNoneAndAuto"></div>
<div class="grid gridWithNoneAndFixed" id="gridWithNoneAndFixed"></div>
<div class="grid gridWithThreeItems" id="gridWithThreeItems"></div>
<div class="grid gridWithPercentAndViewportPercent" id="gridWithPercentAndViewportPercent"></div>
<div class="grid gridWithFitContentAndFitAvailable" id="gridWithFitContentAndFitAvailable"></div>
<div class="grid gridWithMinMaxContent" id="gridWithMinMaxContent"></div>
<div class="grid gridWithMinMaxContent" id="gridWithMinMaxContentWithChildrenElement">
<div class="gridItem"></div>
<div class="gridItem2"></div>
</div>
<div class="grid gridWithMinMaxAndFixed" id="gridWithMinMaxAndFixed"></div>
<div class="grid gridWithMinMaxAndMinMaxContent" id="gridWithMinMaxAndMinMaxContent"></div>
<div class="grid gridWithFractionFraction" id="gridWithFractionFraction"></div>
<div class="grid gridWithFractionMinMax" id="gridWithFractionMinMax"></div>
<div class="grid gridWithCalcCalc" id="gridWithCalcCalc"></div>
<div class="grid gridWithCalcAndFixed" id="gridWithCalcAndFixed"></div>
<div class="grid gridWithCalcAndMinMax" id="gridWithCalcAndMinMax"></div>
<div class="grid gridWithCalcInsideMinMax" id="gridWithCalcInsideMinMax"></div>
<script src="resources/grid-definitions-parsing-utils.js"></script>
<script src="resources/grid-columns-rows-get-set-multiple.js"></script>
<script src="../../resources/js-test-post.js"></script>
</body>
</html>