<!DOCTYPE html>
<meta charset="utf-8">
<title>Legend and display: list-item numbering</title>
<link rel="author" title="Ting-Yu Lin" href="mailto:tlin@mozilla.com">
<link rel="author" title="Mozilla" href="http://www.mozilla.org/">
<link rel=match href="legend-list-item-numbering-ref.html">

<style>
fieldset { margin: 0; padding: 0; border: none; list-style-type: decimal; }
fieldset > * { margin: 0 40px; padding: 0; display: list-item; }
</style>

<fieldset>
  <div>A</div>
  <legend>B</legend>
  <div>C</div>
</fieldset>
