Environment
ESLint version: v10.8.0
@eslint/css version: v1.4.0
Node version: v24.18.0
npm version: v11.16.0
Operating System: windows
Which language are you using?
stylesheet
What did you do?
Configuration
import css from "@eslint/css";
export default [
{
files: ["**/*.css"],
plugins: { css },
language: "css/css",
rules: {
"css/no-invalid-at-rules": "error",
},
},
];
@page {
@top-left {
/* page-margin-properties */
}
}
What did you expect to happen?
@top-left should be accepted as a page margin at-rule when nested inside @page, so no-invalid-at-rules should report no error.
What actually happened?
Unknown at-rule '@top-left' found.
Link to Minimal Reproducible Example
https://stackblitz.com/edit/stackblitz-starters-gnlz6acj
Participation
AI acknowledgment
Additional comments
https://developer.mozilla.org/en-US/docs/Web/CSS/Reference/At-rules/@page#margin_at-rules
Environment
ESLint version: v10.8.0
@eslint/css version: v1.4.0
Node version: v24.18.0
npm version: v11.16.0
Operating System: windows
Which language are you using?
stylesheet
What did you do?
Configuration
What did you expect to happen?
@top-leftshould be accepted as a page margin at-rule when nested inside@page, sono-invalid-at-rulesshould report no error.What actually happened?
Link to Minimal Reproducible Example
https://stackblitz.com/edit/stackblitz-starters-gnlz6acj
Participation
AI acknowledgment
Additional comments
https://developer.mozilla.org/en-US/docs/Web/CSS/Reference/At-rules/@page#margin_at-rules