<!DOCTYPE html>
<head>
<script>
if (window.testRunner)
    testRunner.dumpAsText();

onload = function () {
    document.designMode = 'on';
    document.execCommand('SelectAll')
    document.execCommand('Indent');
    document.body.textContent = 'Pass if not crash.';
};
</script>
</head>
<body style="display: -webkit-inline-box">
<ol style="display: -webkit-inline-box">
<br>
foo
</ol>
</body>
</html>
