<?xml version="1.0" encoding="UTF-8"?>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
	<title>Test that legend is display:block by default when outside of fieldset (Bug 476063)</title>
</head>
<body>

<div>
  <legend style="padding: 0">The legend</legend>
  The rest of the div.
</div>

</body>
</html>