Bug 1723989 - Turn off print preview animations when show animations switched off r=mstriemer

Differential Revision: https://phabricator.services.mozilla.com/D125598
This commit is contained in:
Hanna Jones 2021-09-14 20:04:59 +00:00
Родитель 3c893cc4cb
Коммит 08367fc9e2
1 изменённых файлов: 23 добавлений и 5 удалений

Просмотреть файл

@ -1399,7 +1399,6 @@ toolbarpaletteitem:not([place="palette"]) > #stop-reload-button {
}
.previewRendering {
background-image: url("chrome://browser/skin/tabbrowser/pendingpaint.png");
background-repeat: no-repeat;
background-size: 60px 60px;
background-position: center center;
@ -1416,7 +1415,6 @@ toolbarpaletteitem:not([place="palette"]) > #stop-reload-button {
.printPreviewBrowser {
visibility: collapse;
opacity: 1;
transition: opacity 60ms;
}
.previewStack[previewtype="source"] > .printPreviewBrowser[previewtype="source"],
@ -1427,7 +1425,6 @@ toolbarpaletteitem:not([place="palette"]) > #stop-reload-button {
.previewStack[rendering=true] > .printPreviewBrowser {
opacity: 0;
transition: opacity 1ms 250ms;
}
.print-pending-label {
@ -1437,12 +1434,10 @@ toolbarpaletteitem:not([place="palette"]) > #stop-reload-button {
printpreview-pagination {
opacity: 0;
transition: opacity 100ms 500ms;
}
printpreview-pagination:focus-within,
.previewStack:hover printpreview-pagination {
opacity: 1;
transition: opacity 100ms;
}
.previewStack[rendering=true] printpreview-pagination {
opacity: 0;
@ -1455,6 +1450,29 @@ printpreview-pagination:focus-within,
}
}
@media (prefers-reduced-motion: no-preference) {
.previewRendering {
background-image: url("chrome://browser/skin/tabbrowser/pendingpaint.png");
}
.printPreviewBrowser {
transition: opacity 60ms;
}
.previewStack[rendering=true] > .printPreviewBrowser {
transition: opacity 1ms 250ms;
}
printpreview-pagination {
transition: opacity 100ms 500ms;
}
printpreview-pagination:focus-within,
.previewStack:hover printpreview-pagination {
transition: opacity 100ms;
}
}
/* WebExtension Sidebars */
#sidebar-box[sidebarcommand$="-sidebar-action"] > #sidebar-header > #sidebar-switcher-target > #sidebar-icon {
list-style-image: var(--webextension-menuitem-image, inherit);