adele@apple.com | d6b0594 | 2009-09-25 18:55:42 +0000 | [diff] [blame] | 1 | <html> |
| 2 | <head> |
| 3 | <script> |
| 4 | function test() |
| 5 | { |
rniwa@webkit.org | 14f6b5b | 2012-06-13 08:51:53 +0000 | [diff] [blame] | 6 | if (window.testRunner) |
| 7 | testRunner.dumpAsText(); |
adele@apple.com | d6b0594 | 2009-09-25 18:55:42 +0000 | [diff] [blame] | 8 | |
| 9 | window.getSelection().setPosition(document.getElementById('dv'), 1); |
| 10 | document.execCommand("InsertParagraph"); |
| 11 | document.execCommand("InsertText", false, "this should also be blue over lightgrey"); |
| 12 | |
| 13 | document.write("<xmp>" + document.body.innerHTML + "</xmp>"); |
| 14 | } |
| 15 | </script> |
| 16 | </head> |
| 17 | <body onload="test()"> |
commit-queue@webkit.org | f7ff6e6 | 2012-05-01 02:09:08 +0000 | [diff] [blame] | 18 | <div id="dv" contenteditable><span style="background-color: lightgrey">lightgrey background <font color="blue">blue font color over lightgrey background</font></span> |
adele@apple.com | d6b0594 | 2009-09-25 18:55:42 +0000 | [diff] [blame] | 19 | </div> |
| 20 | </body> |
| 21 | </html> |