blob: b03520f55ab4adbb83c346ff0d40b741f6354cf6 [file] [edit]
<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN">
<html>
<head>
<link href="resources/grid.css" rel="stylesheet">
<style>
.gridWithNone {
-webkit-grid-template-columns: none;
-webkit-grid-template-rows: none;
}
.gridWithFixed {
-webkit-grid-template-columns: 10px;
-webkit-grid-template-rows: 15px;
}
.gridWithPercent {
-webkit-grid-template-columns: 53%;
-webkit-grid-template-rows: 27%;
}
.gridWithAuto {
-webkit-grid-template-columns: auto;
-webkit-grid-template-rows: auto;
}
.gridWithEM {
-webkit-grid-template-columns: 10em;
-webkit-grid-template-rows: 15em;
font: 10px Ahem;
}
.gridWithViewPortPercentage {
-webkit-grid-template-columns: 8vw;
-webkit-grid-template-rows: 10vh;
}
.gridWithFitContent {
-webkit-grid-template-columns: -webkit-fit-content;
-webkit-grid-template-rows: -webkit-fit-content;
}
.gridWithFitAvailable {
-webkit-grid-template-columns: -webkit-fit-available;
-webkit-grid-template-rows: -webkit-fit-available;
}
.gridWithMinMax {
-webkit-grid-template-columns: minmax(10%, 15px);
-webkit-grid-template-rows: minmax(20px, 50%);
}
.gridWithMinContent {
-webkit-grid-template-columns: -webkit-min-content;
-webkit-grid-template-rows: -webkit-min-content;
}
.gridWithMaxContent {
-webkit-grid-template-columns: -webkit-max-content;
-webkit-grid-template-rows: -webkit-max-content;
}
.gridWithFraction {
-webkit-grid-template-columns: 1fr;
-webkit-grid-template-rows: 2fr;
}
.gridWithCalc {
-webkit-grid-template-columns: calc(150px);
-webkit-grid-template-rows: calc(75px);
}
.gridWithCalcComplex {
-webkit-grid-template-columns: calc(50% + 150px);
-webkit-grid-template-rows: calc(65% + 75px);
}
.gridWithCalcInsideMinMax {
-webkit-grid-template-columns: minmax(10%, calc(15px));
-webkit-grid-template-rows: minmax(calc(20px), 50%);
}
.gridWithCalcComplexInsideMinMax {
-webkit-grid-template-columns: minmax(10%, calc(50% + 15px));
-webkit-grid-template-rows: minmax(calc(20px + 10%), 50%);
}
</style>
<script src="../../resources/js-test-pre.js"></script>
</head>
<body>
<div class="gridWithNone" id="gridWithNoneElement"></div>
<div class="gridWithFixed" id="gridWithFixedElement"></div>
<div class="gridWithPercent" id="gridWithPercentElement"></div>
<div class="gridWithAuto" id="gridWithAutoElement"></div>
<div class="gridWithEM" id="gridWithEMElement"></div>
<div class="gridWithViewPortPercentage" id="gridWithViewPortPercentageElement"></div>
<div class="gridWithFitContent" id="gridWithFitContentElement"></div>
<div class="gridWithFitAvailable" id="gridWithFitAvailableElement"></div>
<div class="gridWithMinMax" id="gridWithMinMax"></div>
<div class="gridWithMinContent" id="gridWithMinContent"></div>
<div class="gridWithMaxContent" id="gridWithMaxContent"></div>
<div class="gridWithFraction" id="gridWithFraction"></div>
<div class="gridWithCalc" id="gridWithCalc"></div>
<div class="gridWithCalcComplex" id="gridWithCalcComplex"></div>
<div class="gridWithCalcInsideMinMax" id="gridWithCalcInsideMinMax"></div>
<div class="gridWithCalcComplexInsideMinMax" id="gridWithCalcComplexInsideMinMax"></div>
<script src="resources/grid-definitions-parsing-utils.js"></script>
<script src="resources/non-grid-columns-rows-get-set.js"></script>
<script src="../../resources/js-test-post.js"></script>
</body>
</html>