<!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>
This is the first line.<br>
Line two.<br>
Third and final line.
</div>
</body>
</html>