| <!DOCTYPE html> |
| |
| <html> |
| <head> |
| <style> |
| .box { |
| position: relative; |
| height: 200px; |
| width: 200px; |
| background-color: green; |
| } |
| |
| .blurry { |
| margin: 50px; |
| filter: blur(10px); |
| } |
| |
| #change { |
| height: 100px; |
| width: 100px; |
| top: 50px; |
| left: 50px; |
| background-color: red; |
| } |
| </style> |
| <script src="../../resources/run-after-layout-and-paint.js"></script> |
| <script> |
| function repaintTest() |
| { |
| runAfterLayoutAndPaint(function() { |
| document.getElementById('change').style.backgroundColor = "green"; |
| }, true); |
| } |
| </script> |
| </head> |
| <body onload="repaintTest()"> |
| |
| <div class="blurry box"> |
| <div id="change" class="box"> |
| </div> |
| </div> |
| |
| </body> |
| </html> |