summaryrefslogtreecommitdiffstats
path: root/layout/reftests/css-display/display-contents-dyn-insert-text.html
blob: f3b0c0c9517556cd2f2b9dbe0f92f88d2331a429 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
<!doctype html>
<meta charset="utf-8">
<link rel="author" title="Markus Stange" href="mailto:mstange@themasta.com">
<link rel="help" href="https://drafts.csswg.org/css-display/#box-generation">
<title>Bug 1338678 - display:contents makes textContent disappear</title>
<div style="display: contents">
  <div id="element"></div>
</div>
<script>
window.onload = function() {
  document.body.offsetTop;
  var element = document.getElementById('element');
  element.textContent = "FAIL";
  element.textContent = "PASS";
}
</script>