Bug 1730916 - Port bug 1723989: Turn off print preview animations when show animations switched off. r=aleca

--HG--
extra : amend_source : b45478c901d4393aa701273a0e28cd34bb433c58
extra : histedit_source : a41d8e90d001dfd2c227269109881672ffe961b8
This commit is contained in:
Richard Marti 2021-09-16 12:55:36 +03:00
Родитель ccca32d20d
Коммит 45fb49c814
1 изменённых файлов: 23 добавлений и 5 удалений

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

@ -1571,7 +1571,6 @@ iframe.devtools-highlighter-renderer {
}
.previewRendering {
background-image: url("chrome://browser/skin/tabbrowser/pendingpaint.png");
background-repeat: no-repeat;
background-size: 60px 60px;
background-position: center center;
@ -1588,7 +1587,6 @@ iframe.devtools-highlighter-renderer {
.printPreviewBrowser {
visibility: collapse;
opacity: 1;
transition: opacity 60ms;
}
.previewStack[previewtype="source"] > .printPreviewBrowser[previewtype="source"],
@ -1599,7 +1597,6 @@ iframe.devtools-highlighter-renderer {
.previewStack[rendering=true] > .printPreviewBrowser {
opacity: 0;
transition: opacity 1ms 250ms;
}
.print-pending-label {
@ -1609,12 +1606,10 @@ iframe.devtools-highlighter-renderer {
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;
@ -1627,6 +1622,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;
}
}
.dialogStack {
/* Should outrank the z-index values of other UI elements, particularly the devtools
splitter element. */