you need to wrap this in the media rule, and you need to have the media rule be applied for prefers-reduced-motion having no-preference set as the value.
that is wrong syntax for a media rule with inside style rules
this is correct syntax, but you have the wrong values: the scroll behaviour rule needs a value of smooth, and the media have to check for a prefers-reduced-motion of no-preference
would you explain me this sentence " You should have one @media (prefers-reduced-motion: no-preference) rule." i am receiving this message every time i click submit button…