1 <!DOCTYPE HTML PUBLIC
"-//W3C//DTD HTML 4.0 Strict//EN">
4 <title>CSS Test: :not selector with :first-letter selector
</title>
5 <style type=
"text/css">
10 div
, *:not
(:first-letter
)
14 div
, *:not
(::first-letter
)
20 if (window
.testRunner
)
21 window
.testRunner
.dumpAsText();
25 <p>The test passes if there is no red on the page.
</p>
27 <div id=
"test">Filler Text
</div>
29 <div id=
"testresult" style=
"color: blue">Running
</div>
30 <script type=
"text/javascript">
31 function ArrayContains(array
, value
, ci
)
33 ci
= ci
== true ? true : false;
34 for (var i
= 0; i
< array
.length
; i
++)
36 if (ci
&& array
[i
].toLowerCase() == value
.toLowerCase())
40 else if (array
[i
] == value
)
52 var target
= document
.getElementById("test");
53 var val
= getComputedStyle(target
, null).getPropertyValue("color");
55 var aExpectedValues
= new Array("green", "#008000", "rgb(0, 128, 0)");
57 if (ArrayContains(aExpectedValues
, val
, true))
59 document
.getElementById("testresult").innerHTML
= "Pass";
64 document
.getElementById("testresult").innerHTML
= "Fail";