# v1.6.7 - [x] limit the amount of memory used when parsing large files - [x] use node flags as bitmasks - [x] fix powerless and missing components handling with color-mix(). missing and powerless colors are now [carried forward](https://drafts.csswg.org/css-color-5/#rcs-intro) ```ts const css = ` button { color: color-mix(in hsl, hwb(none none none), hsl(11 33 44)); color: color-mix(in hsl, lch(none none 180), hsl(11 33 44)); color: color-mix(in srgb, white, black); color: color-mix(in oklch, oklch(0.783 0.108 326.5 / 0.5), oklch(0.392 0.4 0 / none)); color: color-mix(in srgb, color(display-p3 none none none), color(srgb 0.11 0.33 0.44)); color: color-mix(in oklch, oklch(78.3% 0.108 326.5), oklch(39.2% 0.4 none)) ; } `; const result = transformSync({input: css, beautify: true, inlineCssVariables: true, removeDuplicateDeclarations: false, convertColor: ColorType.SRGB }); // console.debug(result); console.debug(result.code); ``` should produce ```css button { color: color(srgb .78255 .272052 .15745); color: color(srgb .5852 .32384 .2948); color: color(srgb .5 .5 .5); color: color(srgb .843871 -.026576 .636173/50%); color: color(srgb .11 .33 .44); color: color(srgb .764947 .131643 .788822) } ``` - [x] use node flags as bitmasks - [x] merging properties should takes into consideration the !important flag ```ts import {transformSync} from '@tbela99/css-parser'; const options = { input: ` button { line-height: 2.5 !important; line-height: 1.5; } `, beautify: true, }; const result = transformSync(options); console.debug(result.code); ``` should produce ```css button { line-height: 2.5!important } ``` cec10d67a686a415bcbbff1a6712032e21ea204c fa8d7bd9a28dba10d09ce128d362adad9c8287d6 07bdd3343917efb82a99861621315ffec8a10e77 9b1df690864632c48577b565fbc347c17a595ee5 d9accb59207c09ca78cbb28e3cc0fe1ebdef9000 00528fc76dfbac8c80de3190e995478930c27951 8f3d51d8c651007a89d76fd29e219fd517690137 51d85c1fe965fc8755c8b0aaa40b38e3e484b95c 0c1ca9e5e48d3de2e4bcc3ab02836a807de1d12c 0af55c0470cd97da97a836edb6adadda5a16d792
Activity