| <html> |
| <head> |
| <script> |
| function runTest() { |
| if (layoutTestController) |
| layoutTestController.dumpAsText(); |
| document.body.focus(); |
| document.execCommand("JustifyCenter"); |
| document.body.innerText = "This tests for a crash when doing a block style change inside an editable root that contains rendered, but invisible content. This test shouldn't crash and the text-align:center should go onto a new paragraph element, not the body." + "\n\n" + document.body.innerHTML; |
| } |
| </script> |
| </head> |
| <body onLoad="runTest();" contentEditable="true"><div style="padding-left: 5px;"></div></body></html> |