blob: 87b6396fb8a5bd601a280ce28b1367107ea59fca [file] [log] [blame]
<!DOCTYPE html>
<script src="../repaint/resources/text-based-repaint.js"></script>
if (window.testRunner)
testRunner.overridePreference("WebKitCSSGridLayoutEnabled", 1);
function repaintTest()
var gridItem = document.getElementsByClassName("sizedToGridArea")[0]; = "2";
window.addEventListener("load", runRepaintTest, false);
<link href="resources/grid.css" rel="stylesheet">
body {
font: 10px/1 Ahem;
.grid {
grid-rows: 50px 100px;
grid-columns: 100px 50px;
/* Make the grid shrink to fit. */
position: absolute;
.sizedToGridArea {
background-color: purple;
<div>This test checks that changing the grid-row on a grid item properly repaint. The final grid item should be 100px * 100px. There should be no trace of the grid item at the old position.</div>
<div class="grid">
<div class="sizedToGridArea"></div>