v0.9.25
Patch Changes
-
#66
e369d14Thanks @Naycon! - Fix TypeError when parsing @media after nested selectors inside @layerWhen parsing CSS with nested selectors (&) followed by @media rules inside an @layer block, the parser would crash with "Cannot read properties of null (reading 'constructor')" because nestedSelectorRule.parentRule can be null when the parent context is a CSSLayerBlockRule rather than a CSSStyleRule.
-
#69
52b93c7Thanks @acemir! - fix: auto-closing statement rules -
#68
907a0c2Thanks @acemir! - feat: rules interfaces and parse improvements- Expose CSSOM.setup method for globalObject configuration
- Add StyleSheet missing interface properties
- Add CSSStyleSheet constructor options and missing interface properties
- Set cssRules readonly on CSSStylesheet and CSSGroupingRules
- Fix CSSRule.cssText interface implementation
- Improve pseudo-class with selectors list validations
- Imrpove auto-close for all unclosed nested structures
- Handle CSSLayerStatementRule inside CSSLayerBlockRule and other grouping rules
- Handle CSSFontFaceRule, CSSKeyframeRule and CSSPageRule nesting edge cases
- Imrpove code consistency on rules type and prototype assign