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

Side by Side Diff: third_party/WebKit/LayoutTests/fast/repaint/justify-self-change.html

Issue 2261733002: [css-grid] Only force full invalidation when grid item data change (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Patch rebased. Created 4 years, 3 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
1 <!DOCTYPE HTML> 1 <!DOCTYPE HTML>
2 <script src="resources/text-based-repaint.js"></script> 2 <script src="resources/text-based-repaint.js"></script>
3 <script> 3 <script>
4 function repaintTest() { 4 function repaintTest() {
5 document.getElementsByClassName('item1')[0].style.justifySelf = 'start'; 5 document.getElementsByClassName('item1')[0].style.justifySelf = 'stretch';
6 document.getElementsByClassName('item2')[0].style.justifySelf = 'end'; 6 document.getElementsByClassName('item2')[0].style.justifySelf = 'start';
7 document.getElementsByClassName('item3')[0].style.justifySelf = 'end';
7 } 8 }
8 onload = runRepaintAndPixelTest; 9 onload = runRepaintAndPixelTest;
9 </script> 10 </script>
10 <style> 11 <style>
11 body { 12 body {
12 margin: 0; 13 margin: 0;
13 } 14 }
14 #container { 15 #container {
15 display: grid; 16 display: grid;
16 grid: 150px 150px / 100px 100px; 17 grid: 150px 150px / 100px 100px;
17 justify-items: center;
18 width: 200px; 18 width: 200px;
19 height: 300px; 19 height: 300px;
20 background-color: red; 20 background-color: red;
21 } 21 }
22 .item1 { 22 .item1 {
23 grid-row: 1; 23 grid-row: 1;
24 grid-column: 1; 24 grid-column: 1;
25 background-color: green; 25 background-color: green;
26 border: solid thin blue; 26 justify-self: center;
27 width: 50px; 27 height: 300px;
28 } 28 }
29 .item2 { 29 .item2 {
30 grid-row: 1; 30 grid-row: 1;
31 grid-column: 2; 31 grid-column: 2;
32 background-color: green; 32 background-color: green;
33 border: solid thin blue; 33 justify-self: center;
34 width: 50px; 34 height: 300px;
35 }
36 .item3 {
37 grid-row: 1;
38 grid-column: 2;
39 background-color: green;
40 justify-self: center;
41 height: 300px;
42 }
35 </style> 43 </style>
36 <p style="height: 20px">Tests invalidation on justify-self style change. Passes if there is no red.</p> 44 <p style="height: 20px">Tests invalidation on justify-self style change. Passes if there is no red.</p>
37 <div id="container"> 45 <div id="container">
38 <div class="item1"> 46 <div class="item1">
39 <div style="height: 150px"></div> 47 <div style="width: 50px;"></div>
40 </div> 48 </div>
41 <div class="item2"> 49 <div class="item2">
42 <div style="height: 100px"></div> 50 <div style="width: 50px;"></div>
51 </div>
52 <div class="item3">
53 <div style="width: 50px;"></div>
43 </div> 54 </div>
44 </div> 55 </div>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698