Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / paint / invalidation / spv2 / grid-element-change-columns-repaint.html
blob071a4838832510a5e87de3338436357dc2f7fbd9
1 <!-- Based on fast/css-grid-layout/grid-element-change-columns-repaint.html -->
2 <!DOCTYPE html>
3 <html>
4 <script src="resources/paint-invalidation-test.js"></script>
5 <script>
6 window.expectedPaintInvalidationObjects = [
7 "LayoutGrid DIV class='grid'",
8 "LayoutBlockFlow DIV class='sizedToGridArea'",
9 ];
10 function paintInvalidationTest()
12 var gridElement = document.getElementsByClassName("grid")[0];
13 gridElement.style.gridTemplateColumns = "minmax(50px, 180px) 100px 100px";
15 window.addEventListener("load", runPaintInvalidationTest, false);
16 </script>
17 <link href="../../../fast/css-grid-layout/resources/grid.css" rel="stylesheet">
18 <style>
19 body {
20 font: 10px/1 Ahem;
23 .grid {
24 width: -webkit-fit-content;
25 grid-template-rows: 50px;
26 grid-template-columns: minmax(100px, 180px) 100px minmax(50px, 100px);
28 .sizedToGridArea {
29 background-color: purple;
31 </style>
32 <body>
33 <div> This test checks that changing the grid-template-columns lead to a repaint. The final grid element should be 250px * 50px, the grid item should be 50px * 50px. No trace of the elements before the grid-template-columns change should be seen.</div>
34 <div class="constrainedContainer">
35 <div class="grid">
36 <div class="sizedToGridArea"></div>
37 </div>
38 </div>
39 </body>
40 </html>