Skip to content

Bug: no-invalid-at-rules doesn't recognize margin #519

Description

@yphoenix

Environment

ESLint version: v10.8.0
@eslint/css version: 1.4.0
Node version: v26.5.0
npm version: 11.17.0
Operating System: macOS 26.6

Which language are you using?

stylesheet

What did you do?

Configuration
Recommended config
@page
{
	margin: 1in 1in 1in 1in;
}

What did you expect to happen?

no error, margin is completely legal css: https://developer.mozilla.org/en-US/docs/Web/CSS/Reference/At-rules/@page

What actually happened?

 3:2  error  Unknown descriptor 'margin' found for at-rule '@page'  css/no-invalid-at-rules

text.css

Link to Minimal Reproducible Example

See above,

Participation

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

AI acknowledgment

  • I did not use AI to generate this issue report.
  • (If the above is not checked) I have reviewed the AI-generated content before submitting.

Additional comments

Willing to look at the code and see if I can fix it.

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
Implementing

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions