layout/reftests/bugs/348809-2h.html

Thu, 15 Jan 2015 15:55:04 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Thu, 15 Jan 2015 15:55:04 +0100
branch
TOR_BUG_9701
changeset 9
a63d609f5ebe
permissions
-rw-r--r--

Back out 97036ab72558 which inappropriately compared turds to third parties.

     1 <!DOCTYPE html>
     2 <html>
     3 <head>
     4 <style>
     5 span { color: green }
     6 :default + span { color: red }
     7 span.reverse { color: red }
     8 :default + span.reverse { color: green }
     9 input { display: none }
    10 </style>
    11 </head>
    12 <body>
    13 <form>
    14 <div>
    15   <input type="radio" checked="checked" id="foo">
    16   <span>There should be no red.</span>
    17 </div>
    18 <div>
    19   <input checked="checked" id="bar">
    20   <span class="reverse">There should be no red.</span>
    21 </div>
    22 </form>
    23 <script>
    24   var foo = document.body.offsetWidth;
    25   document.getElementById("foo").removeAttribute("type");
    26   document.getElementById("bar").setAttribute("type", "radio");
    27 </script>
    28 </body>
    29 </html>

mercurial