blob: 23bf26de13b030daf8691f07e71fabea6c42fd10 [file] [log] [blame]
<!DOCTYPE html>
<html>
<script>
testRunner.overridePreference("WebKitCSSGridLayoutEnabled", 1);
</script>
<link href=resources/grid.css rel=stylesheet>
<style>
.gridNoRow {
grid-columns: 50px;
/* Make the grid shrink-to-fit. */
position: absolute;
}
.gridNoColumn {
grid-rows: 50px 80px;
/* Make the grid shrink-to-fit. */
position: absolute;
}
</style>
<script src="../../resources/check-layout.js"></script>
<body onload="checkLayout('.grid');">
<p>This test checks that a grid element with row(s) (resp. column(s)) but no column (resp. row) is properly laid out.</p>
<div class="grid gridNoRow" data-expected-width="50" data-expected-height="0"></div>
<div class="grid gridNoColumn" data-expected-width="0" data-expected-height="130"></div>
</body>
</html>