Source code

Revision control

Copy as Markdown

Other Tools

Test Info:

  • This WPT test may be referenced by the following Test IDs:
<!doctype html>
<title>Rendering of display: none legend</title>
<link rel=match href=legend-display-none-rendering-ref.html>
<style>
fieldset { border: 2em solid lime; width: 0; margin: 0; padding: 0; }
legend { display: none; background: red; }
</style>
<p>There should be a green box below.</p>
<fieldset>
<legend>FAIL</legend>
</fieldset>