summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/css/css-display/display-contents-suppression-dynamic-001.html
blob: 5007e1f57d35538bf43f7ccc616d53bddafb20c7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
<!DOCTYPE html>
<meta charset="utf-8">
<title>CSS Test: display: contents unboxing works in presence of dynamic changes to the tree.</title>
<link rel="author" title="Emilio Cobos Álvarez" href="mailto:emilio@crisal.io">
<link rel="help" href="https://drafts.csswg.org/css-display-3/#valdef-display-contents">
<link rel="help" href="https://drafts.csswg.org/css-display-3/#unbox">
<link rel="match" href="display-contents-suppression-dynamic-001-ref.html">
<p>Test passes if you see nothing below.</p>
<textarea style="display: contents">
  FAIL
</textarea>
<script>
  let textarea = document.querySelector("textarea");
  textarea.offsetTop;
  textarea.appendChild(document.createTextNode("FAIL"));
</script>