Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(34)

Side by Side Diff: third_party/WebKit/LayoutTests/paint/invalidation/spv2/grid-element-change-rows-repaint.html

Issue 2010243002: Remove paint/invalidation/spv2 (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
(Empty)
1 <!-- Based on fast/css-grid-layout/grid-element-change-rows-repaint.html -->
2 <!DOCTYPE html>
3 <html>
4 <script src="resources/paint-invalidation-test.js"></script>
5 <script>
6 function paintInvalidationTest()
7 {
8 var gridElement = document.getElementsByClassName("grid")[0];
9 gridElement.style.gridTemplateRows = "100px 50px";
10 }
11 window.addEventListener("load", runPaintInvalidationTest, false);
12 </script>
13 <link href="../../../fast/css-grid-layout/resources/grid.css" rel="stylesheet">
14 <style>
15 body {
16 font: 10px/1 Ahem;
17 }
18
19 .grid {
20 width: -webkit-fit-content;
21 grid-template-rows: 50px 100px;
22 grid-template-columns: 100px;
23 }
24 .sizedToGridArea {
25 background-color: purple;
26 }
27 </style>
28 <body>
29 <div>This test checks that changing the grid-template-rows lead to a repaint. Th e final grid element should be 100px * 150px, the grid item should be 100px * 10 0px. No trace of the elements before the grid-template-rows change should be see n.</div>
30 <div class="constrainedContainer">
31 <div class="grid">
32 <div class="sizedToGridArea"></div>
33 </div>
34 </div>
35 </body>
36 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698