Skip to content

Bug: Nested media queries report when they directly use a descriptor #255

@ldavidpace

Description

@ldavidpace

Environment

ESLint version: v9.16.0
@eslint/css version: 0.11.0
Node version: v22.19.0
npm version: v9.6.7
Operating System: darwin 24.5.0

Which language are you using?

stylesheet

What did you do?

Configuration
{
language: 'css/css',
languageOptions: {
	tolerant: true,
},
plugins: {css: css},
rules: {
'css/no-invalid-at-rules': 'error'
}
}
.responsive {
  width: 800px;
  @media (max-width: 800px) {
     width: 500px
  }
}

What did you expect to happen?

No errors reported

What actually happened?

Unknown descriptor 'width' found for at-rule '@media' css/no-invalid-at-rules

Link to Minimal Reproducible Example

https://github.com/ldavidpace/NestedMediaError

Participation

  • I am willing to submit a pull request for this issue.

Additional comments

No response

Metadata

Metadata

Assignees

Labels

acceptedThere is consensus among the team that this change meets the criteria for inclusionbugSomething isn't working

Type

No type

Projects

Status

Ready to Implement

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions