blob: 2168a88a6c5d454ce8997fa8ff5ef60fc9d9b682 [file] [log] [blame]
<html>
<body>
<p>This tests querying font size when there is a typing style. WebKit should not crash and you should see 'PASS':</p>
<span id="test" contenteditable><br></span>
<script type="text/javascript">
if (window.testRunner)
testRunner.dumpAsText();
window.getSelection().setPosition(document.getElementById('test').firstChild, 0);
document.execCommand('bold', false, null);
document.queryCommandValue('fontSize');
document.getElementById('test').innerHTML = 'PASS';
</script>
</body>
</html>