vunguyentuan / vscode-css-variables

CSS variables autocomplete for vscode
https://marketplace.visualstudio.com/items?itemName=vunguyentuan.vscode-css-variables
MIT License
139 stars 22 forks source link

Support for Color Functional Notation #52

Closed djmtype closed 1 year ago

djmtype commented 1 year ago

Correct me if I'm wrong. This extension doesn't seem to work with modern color function notation which is supported by most modern browsers without a postcss polyfill.

Example: hsl(35deg 86% 67% / .5)

I then tried the same custom property written in the older hsl format, hsla(35, 86%, 67%, .5), and it worked, displaying a color preview while showing as an autocomplete option. This proves the extension works but doesn't recognize colors formatted in the functional notation as illustrated above.