csstree / validator

CSS validator based on CSSTree
MIT License
65 stars 14 forks source link

Validate CSS variables name #38

Open PavelFil opened 1 week ago

PavelFil commented 1 week ago

Hello. This code doesn't show any error.

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

But property names must be prefixed with --.

lahmatiy commented 1 day ago

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.