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
/// Known CSS at-rule names.
pub static AT_RULES: phf::Set<&'static str> = phf::phf_set! {
    "annotation",
    "apply",
    "character-variant",
    "charset",
    "counter-style",
    "custom-media",
    "custom-selector",
    "document",
    "font-face",
    "font-feature-values",
    "import",
    "keyframes",
    "layer",
    "media",
    "namespace",
    "nest",
    "ornaments",
    "page",
    "property",
    "styleset",
    "stylistic",
    "supports",
    "swash",
    "viewport",
    // below are page margin at-rules
    "top-left-corner",
    "top-left",
    "top-center",
    "top-right",
    "top-right-corner",
    "bottom-left-corner",
    "bottom-left",
    "bottom-center",
    "bottom-right",
    "bottom-right-corner",
    "left-top",
    "left-middle",
    "left-bottom",
    "right-top",
    "right-middle",
    "right-bottom",
};

#[cfg(test)]
mod tests {
    use super::*;

    #[test]
    fn test_at_rules() {
        assert!(AT_RULES.contains("media"));
        assert!(AT_RULES.contains("keyframes"));
    }
}