| OLD | NEW |
| 1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
| 2 Tests interference between different subsequences with compositing. Passes if no
red. | 2 Tests interference between different subsequences with compositing. Passes if no
red. |
| 3 <div id="container" style="position: absolute; width: 300px; height: 200px"> | 3 <div id="container" style="position: absolute; width: 300px; height: 200px"> |
| 4 <div id="composited-content1" style="position: absolute; top: 0; left: 0; back
face-visibility: hidden"> | 4 <div id="composited-content1" style="position: absolute; top: 0; left: 0; back
face-visibility: hidden"> |
| 5 <div id="content1a" style="position: absolute; top: 0; left: 0; width: 100px
; height: 100px; background-color: red"></div> | 5 <div id="content1a" style="position: absolute; top: 0; left: 0; width: 100px
; height: 100px; background-color: red"></div> |
| 6 </div> | 6 </div> |
| 7 <div id="content2" style="position: absolute; top: 0; left: 100px; width: 100p
x; height: 100px; background-color: red"></div> | 7 <div id="content2" style="position: absolute; top: 0; left: 100px; width: 100p
x; height: 100px; background-color: red"></div> |
| 8 </div> | 8 </div> |
| 9 <script src="../../resources/run-after-layout-and-paint.js"></script> | 9 <script src="../../resources/run-after-layout-and-paint.js"></script> |
| 10 <script> | 10 <script> |
| 11 onload = function() { | 11 onload = function() { |
| 12 if (window.testRunner) | 12 if (window.testRunner) |
| 13 testRunner.waitUntilDone(); | 13 testRunner.waitUntilDone(); |
| 14 runAfterLayoutAndPaint(function() { | 14 runAfterLayoutAndPaint(function() { |
| 15 console.log('XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX'); |
| 15 content1a.style.backgroundColor = 'green'; | 16 content1a.style.backgroundColor = 'green'; |
| 16 runAfterLayoutAndPaint(function() { | 17 runAfterLayoutAndPaint(function() { |
| 17 content2.style.backgroundColor = 'green'; | 18 content2.style.backgroundColor = 'green'; |
| 18 if (window.testRunner) | 19 if (window.testRunner) |
| 20 testRunner.setCustomTextOutput(window.internals.layerTreeAsText(document
, 0xffffffff)); |
| 19 testRunner.notifyDone(); | 21 testRunner.notifyDone(); |
| 20 }); | 22 }); |
| 21 }); | 23 }); |
| 22 }; | 24 }; |
| 23 </script> | 25 </script> |
| 24 | 26 |
| OLD | NEW |