mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
24 lines
522 B
HTML
24 lines
522 B
HTML
|
<!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>
|