-
#91
e600e1dThanks @acemir! - feat: improve RegExp and attr selectors handling -
#89
f29c634Thanks @acemir! - feat: improve escaped characters handling -
#94
14bc2b6Thanks @acemir! - feat: optimize parse validateAtRule and object lookup
-
#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
- #72
f27c829Thanks @acemir! - feat: enhance CSSOM setup method to create instance with globalObject support
- #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
-
#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
-
#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
-
#51
94945d2Thanks @acemir! - feat: support legacy CSSStyleSheet methods and improve nested selectors validation -
#50
7a127e7Thanks @acemir! - feat: support CSSRuleList and improve selectors validation
- #43
374d9a5Thanks @acemir! - feat: improve parse options- add opts to CSSOM.parse
- improve insertRule and deleteRule edge cases
- adjust
@font-facecannot be nested - throw correct error on insertRule invalid index
- adjust
@importcanonical text and layer validation - adjust selectorText values formatting
-
#41
a48b41fThanks @acemir! - feat: sync common rules interfaces- CSSRule
parentRuleandparentStyleSheet, are now prototype getters to be readonly according to the CSSRule interface. - CSSStyleRule
selectorTextandstyleare 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
- CSSRule
-
#29
be06274Thanks @acemir! - fix: improve valid@layername logic -
#30
cd35009Thanks @acemir! - feat: added support for CSSNamespaceRule -
#27
76a68b9Thanks @acemir! - chore: improve stylesheet insert and delete rule
- #8
5ea9d4fThanks @acemir! - feat: parser improvements on selectors, declaration values and error handling
-
#7
6d14f90Thanks @acemir! - feat: add layer() and supports() to @import rule -
#6
a6526adThanks @acemir! - feat: support CSSLayerStatementRule, adjust CSSLayerBlockRule and improves at-rule validation -
#4
46a61eeThanks @anntseng! - fix: check the priority value of the existing property -
#3
243e8cdThanks @DiogoDoreto! -indexparameter ofCSSStyleSheet.insertRuleis now optional
- #5
9f7e335Thanks @simpleman383! - Added support for @layer CSS rule