4 <title>Reference for bug
1483499</title>
6 html { writing-mode: vertical-rl }
8 /* Here in the reference case, we explicitly specify padding, and we also
9 use a custom-styled div as the reference case for any legend element
10 that is not directly snapped into a fieldset border. */
12 border:
1px solid brown;
18 <!-- Test: legend default styling shouldn't be affected
19 by presence of a display:contents wrapper: -->
21 <legend>DisplayContentsWrapper
</legend>
25 <!-- Test: legend should get the same 2px of inline-axis padding, even
26 if it's not inside of a fieldset at all. -->
27 <div class=
"legendRef">JustALegend
</div>
30 <div class=
"legendRef">
31 <div class=
"legendRef">NestedLegend
</div>
37 <div class=
"legendRef">
38 <div class=
"legendRef">NestedLegendInFieldset
</div>