<!DOCTYPE html>
<html>
<head>
<title>This tests that we can layout isolates properly</title>
<style>
body { 
    width: 10px; 
    text-align: right; 
}
q, br { 
    unicode-bidi: -webkit-isolate-override; 
}
</style>
</head>
<body>
PASS if no crash or ASSERT.
<q>
f
 f<br></q>
</body>
<script>
if (window.testRunner)
    testRunner.dumpAsText();
</script>
</html>
