2 <script src=
"../../resources/run-after-layout-and-paint.js"></script>
5 runAfterLayoutAndPaint(function() {
6 var frame
= document
.getElementById('frame');
7 var content
= frame
.contentDocument
.getElementById('content');
8 frame
.style
.top
= '100px';
9 content
.style
.top
= '150px';
13 Tests paint offset adjustment of iframe content which is kept the original location when the iframe moves.
14 Passes if the blue block stays at the same place after repaint.
15 <iframe id=
"frame" style=
"position: absolute; top: 200px; width: 300px; height: 300px"
16 srcdoc=
"<div id='content' style='position: absolute; top: 50px; width: 100px; height: 100px; background-color: blue'></div>">