1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/layout/reftests/bugs/386014-1b.html Wed Dec 31 06:09:35 2014 +0100 1.3 @@ -0,0 +1,26 @@ 1.4 +<!DOCTYPE html> 1.5 +<html> 1.6 +<head> 1.7 +<style> 1.8 + caption { color: green } 1.9 +</style> 1.10 +<script> 1.11 +function boom() 1.12 +{ 1.13 + var table = document.getElementById("table"); 1.14 + 1.15 + var newCaption = document.createElement('caption'); 1.16 + newCaption.appendChild(document.createTextNode("TEST")); 1.17 + newCaption.style.background = "inherit" 1.18 + table.appendChild(newCaption); 1.19 + table.appendChild(document.createElement('caption')); 1.20 +} 1.21 +</script> 1.22 + 1.23 +</head> 1.24 +<body onload="boom();"> 1.25 + 1.26 +<table id="table" style="background: green;"></table> 1.27 + 1.28 +</body> 1.29 +</html>