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

<body>
<div>
  <p>This is the first line.
  <p>Line two.
  <p>Third and final line.
</div>
</body>

</html>