4 https://bugzilla.mozilla.org/show_bug.cgi?id=635286
7 <title>Test for Bug
635286</title>
8 <script type=
"text/javascript" src=
"/MochiKit/MochiKit.js"></script>
9 <script src=
"/tests/SimpleTest/SimpleTest.js"></script>
10 <link rel=
"stylesheet" type=
"text/css" href=
"/tests/SimpleTest/test.css" />
11 <style type=
"text/css">
12 div
{ background: transparent
; }
13 :-moz-any
(#case1
.before
) { background: gray
; }
14 #case2:not
(.after
) { background: gray
; }
15 :-moz-any
(#
case3:not
(.after
)) { background: gray
; }
16 #case4:not
(:-moz-any
(.after
)) { background: gray
; }
20 <a target=
"_blank" href=
"https://bugzilla.mozilla.org/show_bug.cgi?id=635286">Mozilla Bug
635286</a>
21 <div id=
"case1" class=
"before">case1, :-moz-any()
</div>
22 <div id=
"case2" class=
"before">case2, :not()
</div>
23 <div id=
"case3" class=
"before">case3, :not() in :-moz-any()
</div>
24 <div id=
"case4" class=
"before">case4, :-moz-any() in :not()
</div>
26 <script class=
"testbody" type=
"text/javascript">
28 /** Test for Bug
635286 **/
30 window.addEventListener(
"load", function() {
31 var cases = Array.from(document.getElementsByTagName(
"div"));
32 cases.forEach(function(aCase, aIndex) {
33 aCase.className =
"after";
35 window.setTimeout(function() {
36 cases.forEach(function(aCase, aIndex) {
37 is(window.getComputedStyle(aCase)
38 .getPropertyValue(
"background-color"),
46 SimpleTest.waitForExplicitFinish();
47 SimpleTest.requestFlakyTimeout(
"untriaged");