Skip to content

Fix no-invalid-position-declaration false positives for embedded styles #8695

@reduckted

Description

@reduckted

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

<div style="color: red"></div>

What minimal configuration is needed to reproduce the bug?

{
  "overrides": [
    { "files": ["**/*.html"], "customSyntax": "postcss-html" }
  ],
  "rules": {
    "no-invalid-position-declaration": true
  }
}

How did you run Stylelint?

Demo

Which Stylelint-related dependencies are you using?

{
  "stylelint": "16.23.0",
  "postcss-html": "latest"
}

What did you expect to happen?

No problem.

What actually happened?

color: red is reported as a problem.

Do you have a proposal to fix the bug?

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    status: wipis being worked on by someonesyntax: css-in-jsrelates to JS objects & template literalssyntax: htmlrelates to HTML style tags and attributes

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions