Bug 1417079 - Make tab hover animation obey prefers-reduced-motion. r=harry

Differential Revision: https://phabricator.services.mozilla.com/D76627
This commit is contained in:
Dão Gottwald 2020-05-25 13:55:03 +00:00
parent 929e460619
commit 1d4c80a555

View File

@ -556,10 +556,15 @@
background-color: rgba(255,255,255,.1);
}
@media (prefers-reduced-motion: no-preference) {
.tab-line:not([selected=true]):not([multiselected]) {
transition: transform 250ms var(--animation-easing-function), opacity 250ms var(--animation-easing-function);
}
}
.tab-line:not([selected=true]):not([multiselected]) {
opacity: 0;
transform: scaleX(0);
transition: transform 250ms var(--animation-easing-function), opacity 250ms var(--animation-easing-function);
}
.tabbrowser-tab:hover > .tab-stack > .tab-background > .tab-line:not([selected=true]):not([multiselected]) {