Skip to content

Releases: acemir/CSSOM

v0.9.31

12 Jan 13:17
624b5b4

Choose a tag to compare

Patch Changes

v0.9.30

23 Dec 14:18
d2a1205

Choose a tag to compare

Patch Changes

  • #85 25f9726 Thanks @acemir! - feat: sync styleSheet.title with ownerNode.title

    • set selectorText, style and media configurable
    • improve docs and test utils
  • #81 4e349c3 Thanks @acemir! - fix: preserve context for sibling nested selectors

  • #84 84ac918 Thanks @acemir! - feat: implement CSSPropertyRule

  • #83 623e136 Thanks @acemir! - feat: improve CSSImportRule implementation

    • set CSSImportRule.styleSheet to unconstructed
    • avoid insert @import rules into a constructed stylesheet

v0.9.29

10 Dec 19:56
478dc45

Choose a tag to compare

Patch Changes

v0.9.28

07 Dec 12:54
634a5af

Choose a tag to compare

Patch Changes

  • 3c2b77f Thanks @acemir! - fix: importRule stylesheet assign from globalObject

v0.9.27

07 Dec 02:58
5fc4508

Choose a tag to compare

Patch Changes

  • #72 f27c829 Thanks @acemir! - feat: enhance CSSOM setup method to create instance with globalObject support

v0.9.26

05 Dec 01:02
2730402

Choose a tag to compare

Patch Changes

  • #70 e597dfe Thanks @acemir! - fix: improve CSSStyleSheet MediaList and parser
    • CSSStyleSheet replace and replaceSync mutates cssText instead of reasign
    • CSSStyleSheet.removeRule index defaults to 0
    • set MediaList.mediaText to null empties the the list
    • MediaList.toString returns the same as MediaList.mediaText
    • CSSOM.parse initializes styleSheet.media.mediaText with the content of ownerNode media attribute when available

v0.9.25

04 Dec 15:36
1b79a8b

Choose a tag to compare

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

v0.9.24

22 Nov 16:03
6f52241

Choose a tag to compare

Patch Changes

  • #60 dc858f3 Thanks @acemir! - fix: ending nested rules processing and unclosed sheet edge cases

  • #62 e65434c Thanks @acemir! - fix: serialization with empty nested declarations

  • #63 f334c70 Thanks @acemir! - fix: parser improvements

    • Fix CSSScopeRule allows CSSNestedDeclarations
    • Fix mediaText setter with empty value
    • Improve performance and security on selectors validation
    • Handle escape sequences before processing special characters
  • #59 fccf639 Thanks @Xiphoseer! - feat: implement CSSStyleSheet: replaceSync, replace

v0.9.23

07 Nov 18:34
9263c22

Choose a tag to compare

Patch Changes

  • #56 555f3cb Thanks @acemir! - fix: prevent adding semicolon to token if it already ends with one

v0.9.22

07 Nov 13:52
2668c10

Choose a tag to compare

Patch Changes