Skip to content

Fix selector-pseudo-*-no-unknown false positives for form control styling selectors #8622

@tyrann0us

Description

@tyrann0us

What minimal example or steps are needed to reproduce the bug?

::picker(select) {
  color: red;
}

select::picker-icon {
  color: red;
}

What minimal configuration is needed to reproduce the bug?

{
  "rules": {
    "selector-pseudo-element-no-unknown": true
  }
}

How did you run Stylelint?

Demo

Which Stylelint-related dependencies are you using?

Stylelint wrapped in @wordpress/scripts v30.15.0.

What did you expect to happen?

No problems to be reported.

What actually happened?

The following problems were reported:

example.css
1:1-9  ✖ Unexpected unknown pseudo-element selector "::picker"      (selector-pseudo-element-no-unknown)
5:7-20 ✖ Unexpected unknown pseudo-element selector "::picker-icon" (selector-pseudo-element-no-unknown)

Do you have a proposal to fix the bug?

Add both names to Stylelint.
Edit: PR created: #8623.

Metadata

Metadata

Assignees

No one assigned

    Labels

    status: wipis being worked on by someone

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions