Bug 1895153 - Implement "Find in page..." menu functionality r=android-reviewers...
[gecko.git] / editor / reftests / 388980-1-ref.html
blob8b14d7e185c1dd547f70c8493f770fb7fafc2ca5
1 <html>
2 <head>
3 <title>Reftest for bug 388980</title></html>
4 <script type="text/javascript">
6 var text = '<html><head></head><body style="font-size:16px;">'
7 + '<p><span style="background-color:red;">This paragraph should be red</span></p>'
8 + '<p><span style="background-color:blue;">This paragraph should be blue</span></p>'
9 + '<p>This paragraph should not be colored</p>'
10 + '</body></html>';
12 function initIFrame() {
13 var doc = document.getElementById('theIFrame').contentDocument;
14 doc.designMode = 'on';
15 doc.open('text/html');
16 doc.write(text);
17 doc.close();
19 </script>
20 </head>
21 <body onload="initIFrame()" >
22 <iframe id="theIFrame">
23 </iframe>
24 </body>
25 </html>