- Update
@webref/csstov8.7.1
June 28, 2026
- Fix support conditions for shorthands followed by longhands.
:root {
background: var(--green);
background: image(var(--green));
background-size: 100px;
}Now preserves the background-size longhand in the supports condition and becomes
:root {
background: var(--green);
background-size: 100px;
}
@supports (background-image: image(red)) {
:root {
background: image(var(--green));
background-size: 100px;
}
}May 13, 2026
- Add support for
image(red)
January 14, 2026
- Updated: Support for Node
20.19.0or later (major). - Removed:
commonjsAPI. In supported Node versionsrequire(esm)will work without needing to make code changes.
September 21, 2025
- Remove redundant match for
contrast-color( <color> );
August 22, 2025
- Add support for
color(display-p3-linear 0.3081 0.014 0.0567) - Add support for
color-mix(in display-p3-linear, red, blue) - Add support for
color-mix(red, blue) - Add support for
alpha(from red / 0.5)
May 27, 2025
- Add matching rules for variadic function arguments in
color-mix()
April 19, 2025
- Drop the
maxkeyword forcontrast-color( <color> )
August 3, 2024
- Updated: Support for Node v18+ (major).
July 7, 2024
- Add matching rules for alt text in
content
March 31, 2024
- Add matching rules for
contrast-color
March 13, 2024
- Test for mixed component types in color values (e.g.
lab(100 50% 50)) - Allow relative color syntax in
rgbaandhslacolor notations.
February 19, 2024
- Add matching rules for
light-dark
December 15, 2023
- Fix type definitions
October 9, 2023
- Add support for css nesting
- Improve grouping of
@supportsrules - Reduce the size of the generated
@supportsrules for values that containvar()
September 18, 2023
- Improve performance
July 3, 2023
- Change license to
MIT-0(read more about this change in the blog post)
June 1, 2023
- Add support for regular properties whose values contain
var()
.property-with-var--1 {
color: rgba(87, 107, 149, var(--opacity));
color: rgb(87 107 149 / var(--opacity));
}
/* becomes */
.property-with-var--1 {
color: rgba(87, 107, 149, var(--opacity));
}
@supports (color: rgb(0 0 0 / 0)) and (top: var(--f)) {
.property-with-var--1 {
color: rgb(87 107 149 / var(--opacity));
}
}May 19, 2023
- Add relative color syntax support.
- Fix false positive matches for
rgbandhslmodern function notations.
March 25, 2023
- Smaller
@supportscheck forcolor-mix.
February 2, 2023
- Group support rules with the same params to reduce the output size.
January 28, 2023
- Improve
typesdeclaration inpackage.json
January 24, 2023
- Updated: Support for Node v14+ (major).
- Add matching rules for
color-mix - Fix matching rules for gradient functions
- Reduce matchers size
- More matching rules for double position gradients.
- No longer uses custom properties in
@supportsrules. - Implement AST matching for values and units and generate minimal
@supportsfor select features.
Initial release