blob: a913f0155a74f9b292fb0b9c278d70a8d1ada9b2 [file] [log] [blame]
<p>
Test that specifying <tt>display: none</tt> for a <tt>legend</tt> element works.
</p>
<p id="result">
</p>
<fieldset>
<legend id="target" style="display: none;">Legendary</legend>
</fieldset>
<script>
if (window.testRunner)
testRunner.dumpAsText();
document.body.offsetTop;
display = getComputedStyle(document.getElementById("target")).display;
document.getElementById("result").innerText = display === "none" ? "PASS" : ("FAIL: display was '" + display + "'.");
</script>