<!DOCTYPE html>
<html>
<head>
<title>Bug 1083892</title>
<style>
div {
  width:300px;
  height:300px;
  padding:10px;
  border:1px solid black;
  writing-mode:vertical-rl;
}
p {
  margin: 0;
}
</style>
</head>

<body>
<div>
  <p>This is the <b><i>first</i> paragraph</b>. It's long enough to wrap onto multiple lines.
  <p><b>Paragraph <i>two</i></b>.
  <p><b><i>Third and final</i> paragraph</b> of this simple testcase. That's all, folks!
</div>
</body>

</html>