gecko-dev/layout/html/tests/style/bugs/bug302186-12.html

24 строки
535 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", "button");'>
<form>
<div>
<input type="image" checked="checked" id="foo"></button>
<span class="reverse">There should be no red.</span>
</div>
<div>
<input type="image"></button><span>There should be no red.</span>
</div>
</form>
</body>
</html>