Skip to content

fix: recognize at-rule() feature queries in use-baseline - #533

Draft
Pixel998 wants to merge 2 commits into
mainfrom
fix/use-baseline-at-rule-supports
Draft

fix: recognize at-rule() feature queries in use-baseline#533
Pixel998 wants to merge 2 commits into
mainfrom
fix/use-baseline-at-rule-supports

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 did you do?

/* eslint css/use-baseline: "error" */

@supports at-rule(@scope) {
	@scope (.card) {
		a {
			color: red;
		}
	}
}

What did you expect to happen?

No lint error, because @scope is guarded by its matching feature query.

What actually happened?

use-baseline reported:

At-rule '@scope' is not a widely available baseline feature.

What is the purpose of this pull request?

This PR makes use-baseline recognize @supports at-rule() feature queries, so at-rules used as progressive enhancements are not incorrectly reported as baseline violations.

What changes did you make? (Give an overview)

  • Added at-rule() handling for @supports conditions in use-baseline.
  • Documented the supported @supports at-rule() pattern.

Related Issues

Blocked on eslint/csstree#148

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

@eslint-github-bot eslint-github-bot Bot added the bug Something isn't working label Aug 13, 2026
@github-project-automation github-project-automation Bot moved this to Needs Triage in Triage Aug 13, 2026
@Pixel998 Pixel998 moved this from Needs Triage to Blocked in Triage Aug 13, 2026
Comment thread tests/rules/use-baseline.test.js
@Pixel998 Pixel998 added the accepted There is consensus among the team that this change meets the criteria for inclusion label Aug 16, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

accepted There is consensus among the team that this change meets the criteria for inclusion bug Something isn't working

Projects

Status: Blocked

Development

Successfully merging this pull request may close these issues.

2 participants