summaryrefslogtreecommitdiffstats
path: root/third_party/WebKit/LayoutTests/editing/execCommand/25320.html
blob: 48c6b9137d117e2dc263fb2f4b5fc084dad0e3b6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
<html>
<head>
<script>
function runTest() {
    if (window.testRunner)
        testRunner.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>