blob: 78dd7bee68bbd0ef09bf1b997ef1e42f77894d3d [file] [log] [blame]
<!DOCTYPE html>
<html>
<head>
<style>
legend {
background: #fc0;
font: 10px Ahem;
}
fieldset {
border-top: 70px solid #ddd;
background: #ddd;
}
p { margin-top: 0px; }
</style>
<body>
<p>bug <a href="https://bugs.webkit.org/show_bug.cgi?id=35981">35981</a>: Can't apply a bottom-margin to the legend element</p>
<form>
<fieldset>
<legend>xxxx</legend>
<p>There should be no gap above as the legend's margin bottom should be collapsed into the fieldset's border.</p>
</fieldset>
</form>
</body>
</html>