browser(firefox): override reduced motion no-preference (#6683)

This commit is contained in:
Max Schmitt 2021-05-20 21:07:39 +02:00 committed by GitHub
parent 57f3a53a7e
commit b2b45afc22
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 8 additions and 8 deletions

View file

@ -1,2 +1,2 @@
1255
Changed: joel.einbinder@gmail.com Wed 19 May 2021 06:54:50 PM PDT
1256
Changed: max@schmitt.mx Thu May 20 19:04:31 UTC 2021

View file

@ -622,9 +622,9 @@ function fromProtocolColorScheme(colorScheme) {
}
function fromProtocolReducedMotion(reducedMotion) {
if (reducedMotion === 'reduce')
if (reducedMotion === 'reduce' || reducedMotion === 'no-preference')
return reducedMotion;
if (reducedMotion === null || reducedMotion === 'no-preference')
if (reducedMotion === null)
return undefined;
throw new Error('Unknown reduced motion: ' + reducedMotion);
}

View file

@ -1,2 +1,2 @@
1265
Changed: joel.einbinder@gmail.com Wed 19 May 2021 06:53:35 PM PDT
1266
Changed: max@schmitt.mx Thu May 20 19:02:11 UTC 2021

View file

@ -622,9 +622,9 @@ function fromProtocolColorScheme(colorScheme) {
}
function fromProtocolReducedMotion(reducedMotion) {
if (reducedMotion === 'reduce')
if (reducedMotion === 'reduce' || reducedMotion === 'no-preference')
return reducedMotion;
if (reducedMotion === null || reducedMotion === 'no-preference')
if (reducedMotion === null)
return undefined;
throw new Error('Unknown reduced motion: ' + reducedMotion);
}