Skip to content

Commit

Permalink
chore(innate): add css rules parsing
Browse files Browse the repository at this point in the history
  • Loading branch information
j-mendez committed Oct 4, 2023
1 parent df3152d commit 9b76057
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions kayle_innate/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -238,12 +238,12 @@ pub fn _audit_not_ready(html: &str, _css_rules: &str) -> Result<JsValue, JsValue
// TODO: build the rules to css blocks that selectors can be used to find the element of the style.
let mut _css_parser = cssparser::Parser::new(css_rules);

let css_rules_parser = cssparser::RuleListParser::new_for_stylesheet(
let mut css_rules_parser = cssparser::RuleListParser::new_for_stylesheet(
&mut _css_parser,
crate::engine::styles::rules::RulesParser,
);

let mut rules = Vec::new();
let mut rules = Vec::with_capacity(css_rules_parser.by_ref().count());

// todo: parse the rules out correctly to nodes and add declarations
for result in css_rules_parser {
Expand Down

0 comments on commit 9b76057

Please sign in to comment.