gecko-dev/layout/html/tests/style/bugs/bug302186-14.html
2006-08-21 22:10:27 +00:00

24 lines
519 B
HTML

<!DOCTYPE html>
<html>
<head>
<style>
span { color: red }
:default + span { color: green }
span.reverse { color: green }
:default + span.reverse { color: red }
input { display: none }
</style>
<body onload='document.getElementById("foo").setAttribute("type", "submit");'>
<form>
<div>
<input type="button" id="foo"></button>
<span>There should be no red.</span>
</div>
<div>
<input type="submit"></button><span class="reverse">There should be no red.</span>
</div>
</form>
</body>
</html>