1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/layout/reftests/bugs/348809-2h.html Wed Dec 31 06:09:35 2014 +0100 1.3 @@ -0,0 +1,29 @@ 1.4 +<!DOCTYPE html> 1.5 +<html> 1.6 +<head> 1.7 +<style> 1.8 +span { color: green } 1.9 +:default + span { color: red } 1.10 +span.reverse { color: red } 1.11 +:default + span.reverse { color: green } 1.12 +input { display: none } 1.13 +</style> 1.14 +</head> 1.15 +<body> 1.16 +<form> 1.17 +<div> 1.18 + <input type="radio" checked="checked" id="foo"> 1.19 + <span>There should be no red.</span> 1.20 +</div> 1.21 +<div> 1.22 + <input checked="checked" id="bar"> 1.23 + <span class="reverse">There should be no red.</span> 1.24 +</div> 1.25 +</form> 1.26 +<script> 1.27 + var foo = document.body.offsetWidth; 1.28 + document.getElementById("foo").removeAttribute("type"); 1.29 + document.getElementById("bar").setAttribute("type", "radio"); 1.30 +</script> 1.31 +</body> 1.32 +</html>