| <!DOCTYPE html> |
| <iframe id="iframe" srcdoc="<div id='inner-target'>abc</div>"></iframe> |
| Test that reparenting a text node across frame boundaries invalidates only the necessary regions |
| in the source and destination frame. Succeeds if there is no invalidation of the entire root frame. |
| <div id="target"></div> |
| <script src="resources/text-based-repaint.js"></script> |
| <script> |
| function repaintTest() { |
| var target = document.getElementById("target"); |
| var iframeElement = document.getElementById("iframe"); |
| var textNode = iframeElement.contentDocument.getElementById("inner-target"); |
| target.appendChild(textNode); |
| } |
| onload = runRepaintAndPixelTest; |
| </script> |