<!DOCTYPE html>
<html>
<head>
<style>
head {
    display: table-caption;
    height: 100px;
    width: 100px;
    background-color: red;
}
</style>
<script>
if (window.testRunner)
    testRunner.dumpAsText();

onload = function() {
    document.designMode = 'on';
    document.execCommand('SelectAll');
    document.execCommand('Indent');
    document.open();
    document.write('PASS if Blink doesn\'t crash.');
};
</script>
</head>
<body>
foo
</body>
</html>
