Misleading parse error
Open
Nobody has claimed this yet.
- Dominant language
- Java
- Stars
- 250
- Forks
- 123
- PR merge metrics
- No merged PRs in 30d
Description
The validator claims a "Parse Error" at the word after in the following (perfectly working) CSS rule:
a[href]:where(
[href^="https://"],
[href^="http://"],
):after {
content: url('open-external-link-icon.svg');
display: inline-block;
width:1.2ex;
margin-left:.3ex;
}
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by running the supplied CSS rule through the validator and trace how its parser handles :where(...) and the trailing comma before :after. Done means this rule no longer reports a parse error at after, with a regression test covering the example.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- css
- Domain
- tooling, web-dev
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Active
- Clarity
- Mostly clear
- Newbie friendliness
- 65/100