summaryrefslogtreecommitdiffstats
path: root/layout/reftests/bugs/386014-1b.html
blob: 5e394458c481bbaf0d96b61656fe8b55d89b0e4a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
<!DOCTYPE html>
<html>
<head>
<style>
 caption { color: green }
</style>
<script>
function boom()
{
  var table = document.getElementById("table");

  var newCaption = document.createElement('caption');
  newCaption.appendChild(document.createTextNode("TEST"));
  newCaption.style.background = "inherit"
  table.appendChild(newCaption);
  table.appendChild(document.createElement('caption'));
}
</script>

</head>
<body onload="boom();">

<table id="table" style="background: green;"></table>

</body>
</html>