Releases: acemir/CSSOM
v0.9.31
Patch Changes
v0.9.30
Patch Changes
-
#85
25f9726Thanks @acemir! - feat: sync styleSheet.title with ownerNode.title- set selectorText, style and media configurable
- improve docs and test utils
-
#81
4e349c3Thanks @acemir! - fix: preserve context for sibling nested selectors -
#84
84ac918Thanks @acemir! - feat: implementCSSPropertyRule -
#83
623e136Thanks @acemir! - feat: improveCSSImportRuleimplementation- set
CSSImportRule.styleSheetto unconstructed - avoid insert
@importrules into a constructed stylesheet
- set
v0.9.29
v0.9.28
v0.9.27
v0.9.26
Patch Changes
- #70
e597dfeThanks @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
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
v0.9.24
Patch Changes
-
#60
dc858f3Thanks @acemir! - fix: ending nested rules processing and unclosed sheet edge cases -
#62
e65434cThanks @acemir! - fix: serialization with empty nested declarations -
#63
f334c70Thanks @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
fccf639Thanks @Xiphoseer! - feat: implementCSSStyleSheet:replaceSync,replace