| <!DOCTYPE html> |
| <script src="../../resources/run-after-layout-and-paint.js"></script> |
| <script> |
| onload = function() { |
| runAfterLayoutAndPaint(function() { |
| var frame = document.getElementById('frame'); |
| var content = frame.contentDocument.getElementById('content'); |
| frame.style.top = '100px'; |
| content.style.top = '150px'; |
| }, true); |
| }; |
| </script> |
| Tests paint offset adjustment of iframe content which is kept the original location when the iframe moves. |
| Passes if the blue block stays at the same place after repaint. |
| <iframe id="frame" style="position: absolute; top: 200px; width: 300px; height: 300px" |
| srcdoc="<div id='content' style='position: absolute; top: 50px; width: 100px; height: 100px; background-color: blue'></div>"> |
| </iframe> |