Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixes at-rule-no-unknown false positives for @scroll-timeline #6554

Merged
merged 4 commits into from Jan 4, 2023
Merged
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
5 changes: 5 additions & 0 deletions .changeset/nice-ligers-type.md
@@ -0,0 +1,5 @@
---
"stylelint": patch
---

Fixes `at-rule-no-unknown` false positives for `@scroll-timeline`
mattxwang marked this conversation as resolved.
Show resolved Hide resolved
1 change: 1 addition & 0 deletions lib/reference/atKeywords.js
Expand Up @@ -44,6 +44,7 @@ const atKeywords = uniteSets(pageMarginAtKeywords, [
'ornaments',
'page',
'property',
'scroll-timeline',
'styleset',
'stylistic',
'supports',
Expand Down
3 changes: 3 additions & 0 deletions lib/rules/at-rule-no-unknown/__tests__/index.js
Expand Up @@ -91,6 +91,9 @@ testRule({
{
code: '@layer framework { h1 { background: white; } }',
},
{
code: '@scroll-timeline spin-slash { }',
mattxwang marked this conversation as resolved.
Show resolved Hide resolved
},
],

reject: [
Expand Down