blob: d1854984194af640fb079caebd2ecc669f7c2f08 [file] [log] [blame]
<!DOCTYPE html>
<html>
<head>
<script>
if (window.testRunner)
testRunner.overridePreference("WebKitCSSGridLayoutEnabled", 1);
</script>
<link href="resources/grid.css" rel="stylesheet">
<style>
.gridWithFixed {
grid-columns: 7px 11px;
grid-rows: 17px 2px;
}
.gridWithPercent {
grid-columns: 53% 99%;
grid-rows: 27% 52%;
}
.gridWithAuto {
grid-columns: auto auto;
grid-rows: auto auto;
}
.gridWithEM {
grid-columns: 10em 12em;
grid-rows: 15em 17em;
font: 10px Ahem;
}
.gridWithNoneAndAuto {
grid-columns: none auto;
grid-rows: none auto;
}
.gridNoneWithAndFixed {
grid-columns: none 15px;
grid-rows: none 22px;
}
.gridWithThreeItems {
grid-columns: 15px auto 10em;
grid-rows: 12em 18px auto;
font: 10px Ahem;
}
.gridWithPercentAndViewportPercent {
grid-columns: 50% 15vw;
grid-rows: 35% 28vh;
}
.gridWithFitContentAndFitAvailable {
grid-columns: -webkit-content-available;
grid-rows: -webkit-fitcontent -webkit-fit-available;
}
.gridWithMinMaxContent {
grid-columns: -webkit-min-content -webkit-max-content;
grid-rows: -webkit-max-content -webkit-min-content;
}
.gridWithMinMaxAndFixed {
grid-columns: minmax(45px, 30%) 15px;
grid-rows: 12em minmax(35%, 10px);
font: 10px Ahem;
}
.gridWithMinMaxAndMinMaxContent {
grid-columns: minmax(-webkit-min-content, 30%) 15px;
grid-rows: 12em minmax(35%, -webkit-max-content);
font: 10px Ahem;
}
.gridWithFractionFraction {
grid-columns: 1fr 2fr;
grid-rows: 3fr 4fr;
}
.gridWithFractionMinMax {
grid-columns: minmax(-webkit-min-content, 45px) 2fr;
grid-rows: 3fr minmax(14px, -webkit-max-content);
}
</style>
<script src="../js/resources/js-test-pre.js"></script>
</head>
<body>
<div class="grid gridWithFixed" id="gridWithFixedElement"></div>
<div class="grid gridWithPercent" id="gridWithPercentElement"></div>
<div class="grid gridWithAuto" id="gridWithAutoElement"></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 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>
<script src="resources/grid-columns-rows-get-set-multiple.js"></script>
<script src="../js/resources/js-test-post.js"></script>
</body>
</html>