Skip to content

v0.9.25

Choose a tag to compare

@github-actions github-actions released this 04 Dec 15:36
· 26 commits to master since this release
1b79a8b

Patch Changes

  • #66 e369d14 Thanks @Naycon! - Fix TypeError when parsing @media after nested selectors inside @layer

    When 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 52b93c7 Thanks @acemir! - fix: auto-closing statement rules

  • #68 907a0c2 Thanks @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