For Chrome, you can also force this setting through a command line switch:
--force-prefers-reduced-motion
--force-prefers-no-reduced-motion
See https://peter.sh/experiments/chromium-command-line-switches/ for a list of all Chrome command line switches.
This can be very useful, when your running Chrome headless / in a CI.