Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / fast / css-generated-content / beforeAfter-interdocument.html
blobd9abb95444387c4024c80e835966ec537123ff82
1 <html>
2 <body>
3 <p> Bug <a href="https://bugs.webkit.org/show_bug.cgi?id=23826"> 23826 </a>: Potential bug with before/after rule while moving element from one document to another </p>
4 <p> This test that moving a quote element sets the before / after flag in the final document. </p>
5 <script>
6 function test(iframe)
8 var otherDocument = iframe.contentDocument;
9 var quoteElement = otherDocument.createElement("q");
10 quoteElement.appendChild(otherDocument.createTextNode("Quotes should surround"));
11 quoteElement.appendChild(otherDocument.createElement("p"));
12 quoteElement.appendChild(otherDocument.createTextNode("this text."));
13 document.getElementById("console").appendChild(quoteElement);
15 </script>
16 <div id="console"> </div>
17 <iframe src="about:blank" id="iframe" onload="test(this)" style="display: none"> </iframe>
18 </body>
19 </html>