| OLD | NEW |
| 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 = 'stretch'; | 5 document.getElementsByClassName('item1')[0].style.justifySelf = 'stretch'; |
| 6 document.getElementsByClassName('item2')[0].style.justifySelf = 'stretch'; | 6 document.getElementsByClassName('item2')[0].style.justifySelf = 'end'; |
| 7 document.getElementsByClassName('item3')[0].style.justifySelf = 'start'; |
| 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: 300px / 100px 100px; | 17 grid: 300px / 100px 100px; |
| 17 width: 200px; | 18 width: 200px; |
| 18 height: 300px; | 19 height: 300px; |
| 19 background-color: red; | 20 background-color: red; |
| 20 } | 21 } |
| 21 .item1 { | 22 .item1 { |
| 22 grid-row: 1; | 23 grid-row: 1; |
| 23 grid-column: 1; | 24 grid-column: 1; |
| 24 justify-self: start; | 25 justify-self: start; |
| 25 background-color: green; | 26 background-color: green; |
| 26 width: 100px; | 27 height: 300px; |
| 27 } | 28 } |
| 28 .item2 { | 29 .item2 { |
| 29 grid-row: 1; | 30 grid-row: 1; |
| 30 grid-column: 2; | 31 grid-column: 2; |
| 32 background-color: green; |
| 31 justify-self: start; | 33 justify-self: start; |
| 34 height: 300px; |
| 35 width: 100px; |
| 36 } |
| 37 .item3 { |
| 38 grid-row: 1; |
| 39 grid-column: 2; |
| 32 background-color: green; | 40 background-color: green; |
| 41 justify-self: end; |
| 42 height: 300px; |
| 33 width: 100px; | 43 width: 100px; |
| 44 } |
| 34 </style> | 45 </style> |
| 35 <p style="height: 20px">There should be no invalidations because justify-self st
yle change causes no visual change.</p> | 46 <p style="height: 20px">There should be no invalidations because justify-self st
yle change causes no visual change.</p> |
| 36 <div id="container"> | 47 <div id="container"> |
| 37 <div class="item1"></div> | 48 <div class="item1"> |
| 49 <div style="width: 100px;"></div> |
| 50 </div> |
| 38 <div class="item2"></div> | 51 <div class="item2"></div> |
| 52 <div class="item3"></div> |
| 39 </div> | 53 </div> |
| OLD | NEW |