<!DOCTYPE html>
<html>
<style>
div {
  -webkit-writing-mode: vertical-lr;
  -webkit-text-combine: horizontal;
  height: 7px;
  white-space: pre-wrap;
}
</style>
<div>
foo
  <script></script>
  <script></script>
</div>
<script>
if (window.testRunner)
  testRunner.dumpAsText();
document.documentElement.offsetTop;
document.documentElement.innerHTML = "Pass. Test didn't crash.";
</script>
</html>
