1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/layout/reftests/bugs/386014-1a.html Wed Dec 31 06:09:35 2014 +0100 1.3 @@ -0,0 +1,25 @@ 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.insertBefore(newCaption, table.firstChild); 1.19 +} 1.20 +</script> 1.21 + 1.22 +</head> 1.23 +<body onload="boom();"> 1.24 + 1.25 +<table id="table" style="background: green;"><caption></caption></table> 1.26 + 1.27 +</body> 1.28 +</html>