OLD | NEW |
(Empty) | |
| 1 <!-- Based on fast/repaint/background-currentColor-repaint.html --> |
| 2 <!DOCTYPE html> |
| 3 <script src="resources/paint-invalidation-test.js"></script> |
| 4 |
| 5 <style> |
| 6 div { |
| 7 width: 100px; |
| 8 height: 100px; |
| 9 background: currentColor; |
| 10 } |
| 11 |
| 12 #div1 { |
| 13 color: blue; |
| 14 } |
| 15 |
| 16 #div2 { |
| 17 color: transparent; |
| 18 } |
| 19 |
| 20 </style> |
| 21 |
| 22 <div id="div1"></div> |
| 23 <div id="div2"></div> |
| 24 |
| 25 <script> |
| 26 window.expectedPaintInvalidationObjects = [ |
| 27 "LayoutBlockFlow DIV id='div1'", |
| 28 "LayoutBlockFlow DIV id='div2'", |
| 29 ]; |
| 30 function paintInvalidationTest() |
| 31 { |
| 32 div1.style.color = 'transparent'; |
| 33 div2.style.color = 'blue'; |
| 34 } |
| 35 |
| 36 window.onload = runPaintInvalidationTest; |
| 37 |
| 38 </script> |
OLD | NEW |