layout/html/tests/style/bugs/bug302186-10.html
author Benjamin Smedberg <benjamin@smedbergs.us>
Mon, 30 Nov 2009 14:56:08 -0500
changeset 36123 4e0bbcc919a80d9312c7ac9764a9d684d71abcc5
parent 1 9b2a99adc05e53cd4010de512f50118594756650
permissions -rw-r--r--
"Merge" electrolysis-plugins-only back into the electrolysis default branch, but revert all the changes it made so that blame for the tab-specific code is still correct.

<!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>
</head>

<body onload='var div1 = document.getElementById("div1");
              var inputs = div1.getElementsByTagName("input");
              var firstElement = div1.removeChild(inputs[0]);
              var div2 = document.getElementById("div2");
              inputs = div2.getElementsByTagName("input");
              var secondElement = div2.removeChild(inputs[0]);
              div1.insertBefore(secondElement, div1.firstChild);
              div2.insertBefore(firstElement, div2.firstChild);
'>
<form>
<div id="div1">
  <input type="submit" id="foo1"><span>There should be no red.</span>
</div>
<div id="div2">
  <input type="submit" id="foo2"><span class="reverse">There should be no red.</span>
</div>
</form>
</body>
</html>