gecko/layout/html/tests/style/bugs/bug302186-13.html

24 lines
522 B
HTML
Raw Normal View History

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