css_dataset/
at_rule.rs

1/// Known CSS at-rule names.
2pub static AT_RULES: [&str; 40] = [
3    "annotation",
4    "apply",
5    "character-variant",
6    "charset",
7    "counter-style",
8    "custom-media",
9    "custom-selector",
10    "document",
11    "font-face",
12    "font-feature-values",
13    "import",
14    "keyframes",
15    "layer",
16    "media",
17    "namespace",
18    "nest",
19    "ornaments",
20    "page",
21    "property",
22    "styleset",
23    "stylistic",
24    "supports",
25    "swash",
26    "viewport",
27    // below are page margin at-rules
28    "top-left-corner",
29    "top-left",
30    "top-center",
31    "top-right",
32    "top-right-corner",
33    "bottom-left-corner",
34    "bottom-left",
35    "bottom-center",
36    "bottom-right",
37    "bottom-right-corner",
38    "left-top",
39    "left-middle",
40    "left-bottom",
41    "right-top",
42    "right-middle",
43    "right-bottom",
44];
45
46#[cfg(test)]
47mod tests {
48    use super::*;
49
50    #[test]
51    fn test_at_rules() {
52        assert!(AT_RULES.contains(&"media"));
53        assert!(AT_RULES.contains(&"keyframes"));
54    }
55}