summaryrefslogtreecommitdiffstats
path: root/layout/reftests/bugs/315620-1a.html
blob: 659928af026b020734c921364b6192d41fbca1e4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
<html>
<head>
  <style>
    div { background: red; height: 3em; }
    div:empty { background: lime; }
  </style>
</head>
<body>
  <div style="display: none"></div>
  <script>
    var div = document.getElementsByTagName("div")[0];
    div.appendChild(document.createTextNode(""));
    div.style.display = "";
  </script>
</body>
</html>