Skip to content

fix: support at-rules nested in @page and @font-feature-values - #543

Open
Pixel998 wants to merge 1 commit into
mainfrom
fix/required-parent-at-rules
Open

fix: support at-rules nested in @page and @font-feature-values#543
Pixel998 wants to merge 1 commit into
mainfrom
fix/required-parent-at-rules

Conversation

@Pixel998

Copy link
Copy Markdown
Contributor

Prerequisites checklist

AI acknowledgment

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

What is the purpose of this pull request?

This PR fixes no-invalid-at-rules reporting valid CSS as unknown at-rules.

Fixes #525.

The issue reports page-margin at-rules, but the same bug affects any at-rule that is only valid inside another at-rule, so this covers both families the CSS specs define:

  • the 16 margin at-rules valid inside @page (@top-left, @bottom-center, …)
  • the 7 feature value blocks valid inside @font-feature-values (@styleset, @swash, @character-variant, …)

Is there anything you'd like reviewers to focus on?

@github-project-automation github-project-automation Bot moved this to Needs Triage in Triage Aug 26, 2026
@eslint-github-bot eslint-github-bot Bot added the bug Something isn't working label Aug 26, 2026
@Pixel998 Pixel998 moved this from Needs Triage to Implementing in Triage Aug 26, 2026

@DMartens DMartens left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Changes LGTM, thanks. Leaving open for second review.

@DMartens DMartens moved this from Implementing to Second Review Needed in Triage Aug 26, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

Status: Second Review Needed

Development

Successfully merging this pull request may close these issues.

Bug: no-invalid-at-rules rejects page margin at-rules

2 participants