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