Bug 1227129 - Apply 'will-change: transform' to fullscreen-warning when it is shown. r=roc

Since there is a 3s timeout to hide the fullscreen warning, it makes
sense to always apply will-change transform when it is not hidden. This
could also avoid slight rendering difference when it stops moving.
This commit is contained in:
Xidorn Quan 2015-11-24 13:51:43 +11:00
parent 09d867433e
commit 74919cf92f

View File

@ -667,6 +667,7 @@ html|*#fullscreen-warning {
}
html|*#fullscreen-warning:not([hidden]) {
display: flex;
will-change: transform;
}
html|*#fullscreen-warning[onscreen] {
transform: translate(-50%, 50px);