validator icon indicating copy to clipboard operation
validator copied to clipboard

Validate CSS variables name

Open PavelFil opened this issue 1 year ago • 1 comments

Hello. This code doesn't show any error.

body {
    color: var(primary-color);
}

But property names must be prefixed with --.

PavelFil avatar Sep 28 '24 04:09 PavelFil

CSSTree currently skips validation of declaration values that contain var(...), but it would be beneficial to at least validate the variable names. It would be great if you could create an issue in CSSTree to address this improvement.

lahmatiy avatar Oct 10 '24 16:10 lahmatiy