1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
#[macro_use]
extern crate lazy_static;

pub mod ast;
pub mod parser;
pub mod token;

#[cfg(test)]
pub static PASS_SELECTORS: &[&str] = &[
    ".intro",
    ".name1.name2",
    ".name1 .name2",
    "#firstname",
    "*",
    "p",
    "p.intro",
    "div, p",
    "div p",
    "div > p",
    "div + p",
    "p ~ ul",
    "[target]",
    "[target=_blank]",
    "[title~=flower]",
    "[lang|=en]",
    "a[href^=\"https\"]",
    "a[href$=\".pdf\"]",
    "a[href*=\"w3schools\"]",
    "a:active",
    "p::after",
    "p::before",
    "input:checked",
    "input:default",
    "input:disabled",
    "p:empty",
    "input:enabled",
    "p:first-child",
    "p::first-letter",
    "p::first-line",
    "p:first-of-type",
    "input:focus",
    "a:hover",
    "input:in-range",
    "input:indeterminate",
    "input:invalid",
    "p:lang(it)",
    "p:last-child",
    "p:last-of-type",
    "a:link",
    ":not(p)",
    "p:nth-child(2)",
    "p:nth-last-child(2)",
    "p:nth-last-of-type(2)",
    "p:nth-of-type(2)",
    "p:only-of-type",
    "p:only-child",
    "input:optional",
    "input:out-of-range",
    "input::placeholder",
    "input:read-only",
    "input:read-write",
    "input:required",
    ":root",
    "::selection",
    "#news:target",
    "input:valid",
    "a:visited",
];