summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/html/rendering/non-replaced-elements/the-fieldset-and-legend-elements/legend-painting-order.html
blob: ac0bd43037450964bb3c09e4ba68f0326b100b20 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
<!doctype html>
<title>Legend painting order</title>
<link rel=match href=legend-painting-order-ref.html>

<p>There should be a green square below, and no red.</p>
<div style="float:left; width:0px; height:0px;">
  <div style="width:100px; height:100px; background:red;"></div>
</div>
<fieldset style="margin:0; border:none; padding:0;">
  <legend style="padding:0;">
    <div style="float:left; width:100px; height:100px; background:green;"></div>
  </legend>
</fieldset>