Source code

Revision control

Copy as Markdown

Other Tools

Test Info:

  • This WPT test may be referenced by the following Test IDs:
    • /html/rendering/non-replaced-elements/the-fieldset-and-legend-elements/second-legend-becomes-rendered-legend-crash.html - WPT Dashboard Interop Dashboard
<!DOCTYPE html>
<link rel="author" title="Morten Stenshorne" href="mailto:mstensho@chromium.org">
<fieldset>
<legend id="legend1"></legend>
<legend id="legend2"><div id="child" style="float:left;"></div></legend>
</fieldset>
<script>
requestAnimationFrame(()=> {
requestAnimationFrame(()=> {
legend1.style.display = "none";
document.body.offsetTop;
child.style.width = "22px";
document.body.offsetTop;
child.style.display = "none";
});
});
</script>