Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Some CSS errors are not detected if they are at the start of the file, but detected when they are in the middle (?) #21

Open
Stvad opened this issue Apr 6, 2021 · 2 comments

Comments

@Stvad
Copy link

Stvad commented Apr 6, 2021

Example:

This generates no errors:

}  

.garden-link::before {
  content: "🦚"
 } 

This generates an error:

.garden-link::before {
  content: "🦚"
 } 

}

More generally I seem to be able to put semi-arbitrary things at the start of the file...

@lahmatiy
Copy link
Member

Validator doesn't exam selectors at the moment. In first case } became a part of selector. In second case, } is a part of seelctor, but there is no block – that's why an error happens. I suppose, when selector validation will be added, this issue will be resolved.

@Stvad
Copy link
Author

Stvad commented Apr 30, 2021

I see, thanks for the update! Is there anything I can do in the meantime to catch somethign like this?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants