csstree / validator

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

There is no validation of @media and pseudo elements #39

Open PavelFil opened 1 month ago

PavelFil commented 1 month ago

This code doesn't print any error.

::gsdfgsdf {}
@media gsdfgdfg {}
lahmatiy commented 1 month ago

CSSTree and validator have no support for selector validation yet. The @media example is valid, since gsdfgdfg is matching as media-type and it defined as <ident>, so it can be any identifier.

image