1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/layout/reftests/bugs/348809-2f.html Wed Dec 31 06:09:35 2014 +0100 1.3 @@ -0,0 +1,27 @@ 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 +button { display: none } 1.13 +</style> 1.14 +</head> 1.15 +<body> 1.16 +<form> 1.17 +<div> 1.18 + <button type="submit" checked="checked" id="foo"></button> 1.19 + <span>There should be no red.</span> 1.20 +</div> 1.21 +<div> 1.22 + <button type="submit"></button><span class="reverse">There should be no red.</span> 1.23 +</div> 1.24 +</form> 1.25 +<script> 1.26 + var foo = document.body.offsetWidth; 1.27 + document.getElementById("foo").setAttribute("type", "button"); 1.28 +</script> 1.29 +</body> 1.30 +</html>