Skip to content

Fix selector-type-no-unknown false positives for idents in functional pseudo-classes #8189

@elskhn

Description

@elskhn

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

html:active-view-transition-type(left) {
  animation: none;
}

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": "16.11.0",
  "stylelint-use-nesting": "6.0.0",
}

What did you expect to happen?

No problems to be reported.

What actually happened?

The following problem was reported:

  708:38  ✖  Unexpected unknown type selector "slide-left"   selector-type-no-unknown

Do you have a proposal to fix the bug?

Pleas add support for newer View Transition API selectors such as active-view-transition-type(*).

Chrome article explaining this selector's usage: https://developer.chrome.com/docs/web-platform/view-transitions/same-document#view-transition-types

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions