6 div span { margin
2px; }
7 div ~ span { margin
2px; }
8 div
> span { margin
2px; }
9 div + span { margin
2px; }
11 div#temp { margin
2px; }
12 div.test[
title=
"test"] { margin:
2px; }
13 .test[title~=
"test"] { margin:
2px; }
14 div
> [title|=
"test"] { margin:
2px; }
15 div.test[title^=
"test"] { margin:
2px; }
16 span#test[title$=
"test"] { margin:
2px; }
17 span[title*=
"test"]::after { margin:
2px; }
18 div[title] { margin:
2px; }
19 [title] { margin:
2px; }
20 a:link { margin:
2px; }
21 div, span
> div:hover, a { margin:
2px; }
22 div span#foo.test div:hover#bar a { margin:
2px; }
25 :visited{ margin:
2px; }
26 :hover{ margin:
2px; }
27 :active{ margin:
2px; }
28 :focus{ margin:
2px; }
29 :target{ margin:
2px; }
30 :lang(en){ margin:
2px; }
31 :not(table){ margin:
2px; }
33 :foobarSelectorNotToBePrinted{ color: green; }
34 :enabled{ margin:
2px; }
35 :disabled{ margin:
2px; }
36 :checked{ margin:
2px; }
37 :indeterminate{ margin:
2px; }
38 :nth-child(odd){ margin:
2px; }
39 :nth-child(even){ margin:
2px; }
40 :nth-child(
2n){ margin:
2px; }
41 :nth-child(
2n+
1){ margin:
2px; }
42 :nth-child(-n+
6){ margin:
2px; }
43 :nth-last-child(odd){ margin:
2px; }
44 :nth-last-child(even){ margin:
2px; }
45 :nth-last-child(
2n){ margin:
2px; }
46 :nth-last-child(
2n+
1){ margin:
2px; }
47 :nth-last-child(-n+
6){ margin:
2px; }
48 :nth-of-type(odd){ margin:
2px; }
49 :nth-of-type(even){ margin:
2px; }
50 :nth-of-type(
2n){ margin:
2px; }
51 :nth-of-type(
2n+
1){ margin:
2px; }
52 :nth-of-type(-n+
6){ margin:
2px; }
53 :nth-last-of-type(odd){ margin:
2px; }
54 :nth-last-of-type(even){ margin:
2px; }
55 :nth-last-of-type(
2n){ margin:
2px; }
56 :nth-last-of-type(
2n+
1){ margin:
2px; }
57 :nth-last-of-type(-n+
6){ margin:
2px; }
58 :first-child{ margin:
2px; }
59 :last-child{ margin:
2px; }
60 :first-of-type{ margin:
2px; }
61 :last-of-type{ margin:
2px; }
62 :only-child{ margin:
2px; }
63 :only-of-type{ margin:
2px; }
64 :empty{ margin:
2px; }
65 ::first-line{ margin:
0 }
66 ::selection{ margin:
2px; }
67 ::before{ margin:
2px; }
68 ::after{ margin:
2px; }
72 <pre id=
"result"></pre>
74 if (window
.testRunner
)
75 testRunner
.dumpAsText();
76 var styleSheet
= document
.styleSheets
.item(0);
78 for (var i
= 0; i
< styleSheet
.cssRules
.length
; i
++) {
79 var rule
= styleSheet
.cssRules
[i
];
80 s
+= rule
.selectorText
+ "\n";
82 document
.getElementById("result").innerText
= s
;