Releases: tbela99/css-parser
Releases · tbela99/css-parser
v0.7.1
v0.7.0
- fix merging rules
merging
.a {
display: none;
}
.b {
display: none;
}
.c {
display: none;
}
would produce
.b,.c {
display: none;
}
- experimental CSS prefix removal
- declaration name
- declaration values
- exclude -webkit-* gradients
- css selector validation
- pseudo element
- partial pseudo class validation. does not validate parameters
- attribute selector
- combinator
- simple selector
- nested selector
- strict mode: allow unknown items such as pseudo classes
- allow unknown pseudo classes
- allow unknown attribute selectors
- strip universal selector when possible
What's Changed
- add light-dark() and system colors #41 by @tbela99 in #42
- fix merging rules, css selector validation, experimental prefix remov… by @tbela99 in #44
Full Changelog: v0.6.0...v0.7.0
v0.6.0
v0.5.4
v0.5.3
v0.5.2
- Merging produce invalid rules in unsupported browsers
Full Changelog: v0.5.1...v0.5.2
v0.5.1
v0.5.0
What's Changed
- render node with parents
- fix relative color from xyz
- fix bug when inlineCss is true bug no css variable exists
- compute more shorthands
- (web) fetch imported css files from external domains using cors
- create a playground page
Full Changelog: v0.4.0...v0.5.0
CSS Color level 4 & 5
Parsing
- allow async node visitors
- adding declaration parsing helper async parseDeclarations(source: string): Promise<AstDeclarations[]>
CSS Color level 4
- lch()
- oklch()
- lab()
- oklab()
- color()
CSS Color level 5
- color-mix()
- relative color
What's Changed
Full Changelog: v0.3.0...v0.4.0
Support relative colors
V0.3.0
shorthands
- column-rule
- columns
- container
- flex
- flex-flow
- gap
Other
- renamed RenderOptions.colorConvert to RenderOptions.convertColor
- support none keyword in color
- css relative color syntax for rgb(), hsl() and hwb() colors https://www.w3.org/TR/css-color-5/#relative-colors
- rgb
- hex
- hsl
- hwb
- calc()
- calc() and inline var()
parsing bug
- incorrectly parse declaration shorthand with !important
What's Changed
- #19 select 4 selector attribute parsing by @tbela99 in #20
- update readme #19 by @tbela99 in #21
- Version 0.2.0 by @tbela99 in #22
Full Changelog: v0.2.0...v0.3.0