You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi, thank you for the crate! It looks like v0.31.0 using RuleListParser::new_for_stylesheet all of the classes set are not returned.
I have a large stylesheet that parses correctly in v0.25.0 but, the same logic on v0.31.0 only 3 classes out of like 1000 get applied.
letmut _css_parser = cssparser::Parser::new(css_rules);let css_rules_parser = cssparser::RuleListParser::new_for_stylesheet(&mut _css_parser,crate::engine::styles::rules::RulesParser,);letmut rules = Vec::new();for result in css_rules_parser {match result {Ok(crate::engine::styles::rules::CssRule::StyleRule{ selectors, block }) => {for selector in selectors.0{
rules.push((selector, block.clone()));}}
_ => (),};}println!("CSS RULES: {:?}", rules);
I have an example repo of the issue in this project across two branches kayle. The branch with the correct class list is called victor-stub ( thank you @SimonSapin ).
wasm-pack build --target nodejs to build the wasm crate and in the root folder run yarn test:puppeteer:innate for the test.
The text was updated successfully, but these errors were encountered:
Hi, thank you for the crate! It looks like v0.31.0 using
RuleListParser::new_for_stylesheet
all of the classes set are not returned.I have a large stylesheet that parses correctly in v0.25.0 but, the same logic on v0.31.0 only 3 classes out of like 1000 get applied.
Trying to figure out how to debug the issue:
attached is the SelectorList:
main:
I have an example repo of the issue in this project across two branches kayle. The branch with the correct class list is called
victor-stub
( thank you @SimonSapin ).wasm-pack build --target nodejs
to build the wasm crate and in the root folder runyarn test:puppeteer:innate
for the test.The text was updated successfully, but these errors were encountered: