1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/layout/reftests/bugs/348809-2e.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 +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="submit" checked="checked" id="foo"><span>There should be no red.</span> 1.19 +</div> 1.20 +<div> 1.21 + <input type="submit"><span class="reverse">There should be no red.</span> 1.22 +</div> 1.23 +</form> 1.24 +<script> 1.25 + var foo = document.body.offsetWidth; 1.26 + document.getElementById("foo").removeAttribute("type"); 1.27 +</script> 1.28 +</body> 1.29 +</html>