Skip to content

Latest commit

 

History

History
290 lines (161 loc) · 16.1 KB

File metadata and controls

290 lines (161 loc) · 16.1 KB

@acemir/cssom

0.9.31

Patch Changes

0.9.30

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

0.9.29

Patch Changes

0.9.28

Patch Changes

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

0.9.27

Patch Changes

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

0.9.26

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

0.9.25

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

0.9.24

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

0.9.23

Patch Changes

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

0.9.22

Patch Changes

0.9.21

Patch Changes

  • #52 e912362 Thanks @acemir! - feat: support CSSPageRule and implementation improvements

0.9.20

Patch Changes

0.9.19

Patch Changes

0.9.18

Patch Changes

  • #43 374d9a5 Thanks @acemir! - feat: improve parse options
    • add opts to CSSOM.parse
    • improve insertRule and deleteRule edge cases
    • adjust @font-face cannot be nested
    • throw correct error on insertRule invalid index
    • adjust @import canonical text and layer validation
    • adjust selectorText values formatting

0.9.17

Patch Changes

  • #41 a48b41f Thanks @acemir! - feat: sync common rules interfaces

    • CSSRule parentRule and parentStyleSheet, are now prototype getters to be readonly according to the CSSRule interface.
    • CSSStyleRule selectorText and style are now prototype getter and setter according to the CSSStyleRule interface.
    • Added a try catch to override local CSSStyleDeclaration with the one from cssstyle when needed
    • Implemented methods and indexed getters for CSSKeyframesRule
    • Implementd errorUtils for a more organized way to handle errors

0.9.16

Patch Changes

0.9.15

Patch Changes

0.9.14

Patch Changes

0.9.13

Patch Changes

0.9.12

Patch Changes

0.9.11

Patch Changes

0.9.10

Patch Changes

0.9.9

Patch Changes

0.9.8

Patch Changes

0.9.7

Patch Changes

0.9.6

Patch Changes

0.9.5

Patch Changes

0.9.4

Patch Changes

0.9.3

Patch Changes

  • d2a81ae Thanks @acemir! - feat: support attribute selector case-insensitive flag

0.9.2

Patch Changes

  • #8 5ea9d4f Thanks @acemir! - feat: parser improvements on selectors, declaration values and error handling

0.9.1

Patch Changes

  • #7 6d14f90 Thanks @acemir! - feat: add layer() and supports() to @import rule

  • #6 a6526ad Thanks @acemir! - feat: support CSSLayerStatementRule, adjust CSSLayerBlockRule and improves at-rule validation

  • #4 46a61ee Thanks @anntseng! - fix: check the priority value of the existing property

  • #3 243e8cd Thanks @DiogoDoreto! - index parameter of CSSStyleSheet.insertRule is now optional

0.9.0

Changes

  • #2 64e49ef - feat: support for nested selectors, nested declarations and at-rule validations

0.8.0

Minor Changes

0.7.1

Patch Changes

0.7.0

Minor Changes