Account for margin after when laying out <legend> element
[WebKit.git] / LayoutTests / fast / forms / legend-after-margin-with-before-border-horizontal-mode-expected.html
1 <!DOCTYPE html>
2 <html>
3 <head>
4 <style>
5     legend {
6         background: #fc0;
7         font: 10px Ahem;
8     }
9     fieldset {
10         border-top: 70px solid #ddd;
11         background: #ddd;
12     }
13     p { margin-top: 20px; }
14 </style>
15 <body>
16 <div>bug <a href="https://bugs.webkit.org/show_bug.cgi?id=35981">35981</a>: Can't apply a bottom-margin to the legend element</div>
17 <form>
18     <fieldset>
19         <legend>xxxx</legend>
20         <p>There should be a 20px gap above to account for the margin bottom collapsing into the fieldset before border.</p>
21     </fieldset>
22 </form>
23 </body>
24 </html>