w3c / w3c/css-validator

Please ignore non-existing pseudo-class on pseudo-element vendor extension

Open
#214 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

bug
Dominant language
Java
Stars
250
Forks
123
PR merge metrics
No merged PRs in 30d

Description

Validate the following fragment while treating vendor extensions as warnings:

::-webkit-scrollbar:vertical {
	border: 1px solid black;
}

The validator will report the ::-webkit-scrollbar pseudo-element vendor extension as a warning, as expected. However, it reports the :vertical pseudo-class as an error. Maybe that is formally correct, but from a practical point of view, I would very much prefer if vertical would be ignored because it applies to a vendor extension.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing the CSS fragment in the issue with vendor extensions treated as warnings, then locate the validator logic that handles pseudo-elements and pseudo-classes. Done means the vendor pseudo-element remains a warning while the attached :vertical pseudo-class no longer produces an error, with the existing validation behavior checked for regressions.

Written by the indexing model from the issue text.

Assessment

Tech stack
css, java
Domain
tooling, web-dev
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.