| <!doctype html> |
| <html> |
| <head> |
| <title>Redundant background-color</title> |
| <script src="../../resources/dump-as-markup.js"></script> |
| </head> |
| <body> |
| <div id="div">Hello</div> |
| |
| <script> |
| Markup.description("This tests to make sure that WebKit removes redundant background-color property after execCommand. (See the bug 91783). There should be no background-color property below."); |
| |
| var div = document.getElementById("div"); |
| div.contentEditable = true; |
| div.style.cssText = "background-color: white;"; |
| |
| var range = document.createRange(); |
| range.selectNodeContents(div); |
| window.getSelection().addRange(range); |
| |
| document.execCommand("insertUnorderedList"); |
| |
| Markup.dump(div); |
| </script> |
| </body> |
| </html> |