@@ -31,9 +31,10 @@ $ deno add @tbela99/css-parser
3131 relative color
3232- generate nested css rules
3333- convert nested css rules to legacy syntax
34+ - convert colors to any supported color format
3435- generate sourcemap
3536- compute css shorthands. see supported properties list below
36- - css transform functions minification
37+ - minify css transform functions
3738- evaluate math functions: calc(), clamp(), min(), max(), etc.
3839- inline css variables
3940- remove duplicate properties
@@ -210,7 +211,26 @@ Include ParseOptions and RenderOptions
210211- expandNestingRules: boolean, optional. expand nesting rules.
211212- preserveLicense: boolean, force preserving comments starting with '/\* !' when minify is enabled.
212213- removeComments: boolean, remove comments in generated css.
213- - convertColor: boolean | ColorType, convert colors to the specified color. default to ColorType.HEX.
214+ - convertColor: boolean | ColorType, convert colors to the specified color. default to ColorType.HEX. supported values are:
215+ - true: same as ColorType.HEX
216+ - false: no color conversion
217+ - ColorType.HEX
218+ - ColorType.RGB/ColorType.RGBA
219+ - ColorType.HSL
220+ - ColorType.HWB
221+ - ColorType.CMYK/ColorType.DEVICE_CMYK
222+ - ColorType.SRGB
223+ - ColorType.SRGB_LINEAR
224+ - ColorType.DISPLAY_P3
225+ - ColorType.PROPHOTO_RGB
226+ - ColorType.A98_RGB
227+ - ColorType.REC2020
228+ - ColorType.XYZ/ColorType.XYZ_D65
229+ - ColorType.XYZ_D50
230+ - ColorType.LAB
231+ - ColorType.LCH
232+ - ColorType.OKLAB
233+ - ColorType.OKLCH
214234
215235> Sourcemap Options
216236
@@ -716,15 +736,15 @@ for (const {node, parent, root} of walk(ast)) {
716736## Minification
717737
718738- [x] minify keyframes
719- - [x] minify transform
739+ - [x] minify transform functions
720740- [x] evaluate math functions calc(), clamp(), min(), max(), round(), mod(), rem(), sin(), cos(), tan(), asin(),
721741 acos(), atan(), atan2(), pow(), sqrt(), hypot(), log(), exp(), abs(), sign()
742+ - [x] minify colors
743+ - [x] minify numbers and Dimensions tokens
722744- [x] multi-pass minification
723745- [x] inline css variables
724746- [x] merge identical rules
725747- [x] merge adjacent rules
726- - [x] minify colors
727- - [x] minify numbers and Dimensions tokens
728748- [x] compute shorthand: see the list below
729749- [x] remove redundant declarations
730750- [x] conditionally unwrap : is ()
@@ -733,6 +753,7 @@ for (const {node, parent, root} of walk(ast)) {
733753- [x] avoid reparsing (declarations, selectors, at-rule)
734754- [x] node and browser versions
735755- [x] decode and replace utf-8 escape sequence
756+ - [x] experimental CSS prefix removal
736757
737758## Computed shorthands properties
738759
0 commit comments