1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
use servo_css_parser::style::properties::declaration_block::PropertyDeclarationBlock;

/// Data collected from the CSS stylesheet.
#[derive(Clone, Debug)]
pub struct Rules {
    /// Style rules.
    pub style: Vec<(String, PropertyDeclarationBlock)>,

    /// `@media` rules.
    pub media: Vec<String>,

    /// `@font-face` rules.
    pub font_face: Vec<String>,
}

impl Rules {
    pub fn new() -> Self {
        Self {
            style: vec![],
            media: vec![],
            font_face: vec![],
        }
    }
}