summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/html/rendering/non-replaced-elements/the-fieldset-and-legend-elements/second-legend-becomes-rendered-legend-crash.html
blob: 6e36b3bb5aed7550b12bcbdf7a94d9f8fd372687 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
<!DOCTYPE html>
<link rel="author" title="Morten Stenshorne" href="mailto:mstensho@chromium.org">
<link rel="help" href="https://bugs.chromium.org/p/chromium/issues/detail?id=1119400">
<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>