You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
CSS Color Module Level 4 specifies new syntax for colors funcions like rgb, hsl etc. which allows omitting commas and specifying alpha component by appending / <alpha> value. So legacy color function like rgba(0, 0, 0, 0.5) could be rewritten like rgb(0 0 0 / 50%)
This extension already supports higlighting comma-less color functions, but it doesn't work for functions with slash-separated alpha values.
Examples
Works:
Doesn't work:
The text was updated successfully, but these errors were encountered:
onvlt
changed the title
Support CSS Color Module 4 / opacity notation
Support CSS color function / opacity notation from CSS Color Module 4
Dec 28, 2022
onvlt
changed the title
Support CSS color function / opacity notation from CSS Color Module 4
Support new CSS color syntax with alpha component after /Dec 28, 2022
Hello onvlt 👋 I notice that this repo has not had any new commits for the past year, and version 2.6.0, submitted last year, has not been released. Therefore, I forked the repo and developed a new extension based on version 2.6.0, named Color Highlight - Hue Show Better Version.
CSS Color Module Level 4 specifies new syntax for colors funcions like
rgb
,hsl
etc. which allows omitting commas and specifying alpha component by appending/ <alpha>
value. So legacy color function likergba(0, 0, 0, 0.5)
could be rewritten likergb(0 0 0 / 50%)
This extension already supports higlighting comma-less color functions, but it doesn't work for functions with slash-separated alpha values.
Examples
Works:
Doesn't work:
The text was updated successfully, but these errors were encountered: