Skip to content

Apply selector-pseudo-class-*-list rules to at-page #1871

@alexander-akait

Description

@alexander-akait
  • selector-pseudo-class-no-unknown
  • selector-pseudo-class-disallowed-list
  • selector-pseudo-class-allowed-list

Describe the issue. Is it a bug or a feature request (new rule, new option, etc.)?

https://developer.mozilla.org/en-US/docs/Web/CSS/:first
https://developer.mozilla.org/en-US/docs/Web/CSS/:right
https://developer.mozilla.org/en-US/docs/Web/CSS/:left
https://developer.mozilla.org/en-US/docs/Web/CSS/:blank

cf

const atRulePagePseudoClasses = new Set(['first', 'right', 'left', 'blank']);

Which rule, if any, is this issue related to?

selector-pseudo-class-*

What CSS is needed to reproduce this issue?

e.g.

@page :first {
  margin-left: 50%;
  margin-top: 50%;
}

What stylelint configuration is needed to reproduce this issue?

No matter.

Which version of stylelint are you using?

No matter.

How are you running stylelint: CLI, PostCSS plugin, Node API?

No matter.

Does your issue relate to non-standard syntax (e.g. SCSS, nesting, etc.)?

No matter.

What did you expect to happen?

Check pseudo-classes in this rules

What actually happened (e.g. what warnings or errors you are getting)?

Now we have not check.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions