gecko/layout/html/tests/style/bugs/bug348809-12.html

25 lines
566 B
HTML
Raw Normal View History

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