We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
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
CSS that uses prefers-reduced-motion media query:
prefers-reduced-motion
html { scroll-behavior: smooth; } @media screen and (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
.stylelintrc.js uses stylelint-a11y and its rules (including a11y/media-prefers-reduced-motion):
.stylelintrc.js
stylelint-a11y
a11y/media-prefers-reduced-motion
module.exports = { 'extends': 'stylelint-config-standard', 'plugins': [ 'stylelint-a11y', ], 'rules': { 'a11y/media-prefers-reduced-motion': true, 'a11y/no-outline-none': true, 'a11y/selector-pseudo-class-focus': true, 'no-empty-source': null, 'string-quotes': 'double', 'at-rule-no-unknown': [ true, { 'ignoreAtRules': [ 'extend', 'at-root', 'debug', 'warn', 'error', 'if', 'else', 'for', 'each', 'while', 'mixin', 'include', 'content', 'return', 'function', 'tailwind', 'apply', 'responsive', 'variants', 'screen', ], }, ], }, };
The prefers-reduced-motion media query still results in lint error:
Unexpected unknown media feature name "prefers-reduced-motion" media-feature-name-no-unknown
The text was updated successfully, but these errors were encountered:
No branches or pull requests
CSS that uses
prefers-reduced-motion
media query:.stylelintrc.js
usesstylelint-a11y
and its rules (includinga11y/media-prefers-reduced-motion
):The
prefers-reduced-motion
media query still results in lint error:The text was updated successfully, but these errors were encountered: