[WK2] selection does not disappear after coping the text
[framework/web/webkit-efl.git] / LayoutTests / fast / css-generated-content / beforeAfter-interdocument.html
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)
7     {
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);
14     }
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>