csstree / csstree/validator

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

Open
#21 2 comments 0 reactions 0 assignees View on GitHub
selector validation
Dominant language
JavaScript
Stars
73
Forks
14
PR merge metrics
No merged PRs in 30d

Description

Example:

This generates no errors:
```css
}

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

This generates an error:
```css
.garden-link::before {
content: "🦚"
}

}
```

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

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.