browser(firefox): override reduced motion no-preference (#6683)
This commit is contained in:
parent
57f3a53a7e
commit
b2b45afc22
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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);
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue