| OLD | NEW |
| 1 <!-- Based on fast/repaint/justify-items-overflow-change.html --> |
| 1 <!DOCTYPE HTML> | 2 <!DOCTYPE HTML> |
| 2 <script src="resources/text-based-repaint.js"></script> | 3 <script src="resources/paint-invalidation-test.js"></script> |
| 3 <script> | 4 <script> |
| 4 function repaintTest() { | 5 window.expectedPaintInvalidationObjects = [ |
| 6 "LayoutBlockFlow DIV", |
| 7 "LayoutBlockFlow DIV class='item1'", |
| 8 "LayoutBlockFlow DIV", |
| 9 "LayoutBlockFlow DIV class='item2'", |
| 10 "LayoutGrid DIV id='container'", |
| 11 "LayoutBlockFlow HTML", |
| 12 "LayoutBlockFlow BODY", |
| 13 "LayoutGrid DIV id='container'", |
| 14 "LayoutBlockFlow DIV class='item1'", |
| 15 "LayoutBlockFlow DIV", |
| 16 "LayoutBlockFlow DIV class='item2'", |
| 17 "LayoutBlockFlow DIV", |
| 18 ]; |
| 19 function paintInvalidationTest() { |
| 5 document.getElementById('container').style.justifyItems = 'end safe'; | 20 document.getElementById('container').style.justifyItems = 'end safe'; |
| 6 } | 21 } |
| 7 onload = runRepaintTest; | 22 onload = runPaintInvalidationTest; |
| 8 </script> | 23 </script> |
| 9 <style> | 24 <style> |
| 10 body { | 25 body { |
| 11 margin: 0; | 26 margin: 0; |
| 12 } | 27 } |
| 13 #container { | 28 #container { |
| 14 display: grid; | 29 display: grid; |
| 15 grid: 100px 100px / 300px; | 30 grid: 100px 100px / 300px; |
| 16 justify-items: end true; | 31 justify-items: end true; |
| 17 width: 200px; | 32 width: 200px; |
| (...skipping 14 matching lines...) Expand all Loading... |
| 32 </style> | 47 </style> |
| 33 <p style="height: 20px">Tests invalidation on justify-items style change. Passes
if there is no red.</p> | 48 <p style="height: 20px">Tests invalidation on justify-items style change. Passes
if there is no red.</p> |
| 34 <div id="container"> | 49 <div id="container"> |
| 35 <div class="item1"> | 50 <div class="item1"> |
| 36 <div style="height: 50px"></div> | 51 <div style="height: 50px"></div> |
| 37 </div> | 52 </div> |
| 38 <div class="item2"> | 53 <div class="item2"> |
| 39 <div style="height: 50px"></div> | 54 <div style="height: 50px"></div> |
| 40 </div> | 55 </div> |
| 41 </div> | 56 </div> |
| OLD | NEW |