layout/reftests/bugs/534804-1.html

Wed, 31 Dec 2014 07:16:47 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Wed, 31 Dec 2014 07:16:47 +0100
branch
TOR_BUG_9701
changeset 3
141e0f1194b1
permissions
-rw-r--r--

Revert simplistic fix pending revisit of Mozilla integration attempt.

michael@0 1 <!DOCTYPE HTML>
michael@0 2 <html>
michael@0 3 <head>
michael@0 4 <meta charset='utf-8'>
michael@0 5 <title>dynamic sibling selector testcase</title>
michael@0 6 <script>
michael@0 7 window.onload = function() {
michael@0 8 document.getElementById("adjacent").appendChild(document.createTextNode("PASS: You should see this"));
michael@0 9 document.getElementById("general").appendChild(document.createTextNode("PASS: You should also see this"));
michael@0 10 };
michael@0 11 </script>
michael@0 12 <style>
michael@0 13 .test {
michael@0 14 background: #fcc;
michael@0 15 }
michael@0 16 #adjacent:not(:empty), #general:not(:empty) {
michael@0 17 background: #cfc;
michael@0 18 }
michael@0 19 #adjacent:not(:empty) + .test {
michael@0 20 display: none;
michael@0 21 }
michael@0 22 #general:not(:empty) ~ .test {
michael@0 23 display: none;
michael@0 24 }
michael@0 25 </style>
michael@0 26 </head>
michael@0 27 <body>
michael@0 28 <div>
michael@0 29 <div id="adjacent"></div>
michael@0 30 <div class="test">
michael@0 31 FAIL: You should NOT see me.
michael@0 32 </div>
michael@0 33 </div>
michael@0 34
michael@0 35 <div>
michael@0 36 <div id="general"></div>
michael@0 37 <div class="test">
michael@0 38 FAIL: You should NOT see me either.
michael@0 39 </div>
michael@0 40 <div class="test">
michael@0 41 FAIL: You should NOT even see me.
michael@0 42 </div>
michael@0 43 </div>
michael@0 44 </body>
michael@0 45 </html>

mercurial