| <!DOCTYPE html> |
| |
| <html> |
| <head> |
| <script src="../../resources/ui-helper.js"></script> |
| <style> |
| div { |
| width: 100px; |
| height: 100px; |
| position: absolute; |
| transform: translate3d(0, 0, 0); |
| } |
| #first { |
| background-color: green; |
| } |
| #second { |
| left: 200px; |
| background-color: red; |
| } |
| </style> |
| <script> |
| if (window.testRunner) { |
| testRunner.waitUntilDone(); |
| if (testRunner.dontForceRepaint) |
| testRunner.dontForceRepaint(); |
| } |
| async function doTest() |
| { |
| await UIHelper.renderingUpdate(); |
| |
| window.internals.markFrontBufferVolatile(document.getElementById('first')); |
| document.getElementById('second').style.backgroundColor = "green"; |
| |
| await UIHelper.renderingUpdate(); |
| await UIHelper.renderingUpdate(); |
| |
| if (window.testRunner) |
| testRunner.notifyDone(); |
| } |
| window.addEventListener('load', doTest, false); |
| </script> |
| </head> |
| <body> |
| <div id="first">A</div> |
| <div id="second">B</div> |
| </body> |
| </html> |