Work around a Safari bug causing shadows to remain when the popup is removed

Bug: T297266
Change-Id: Id6c4c140d8e49ad995dbabeb95ef0e41aabba024
This commit is contained in:
Bartosz Dziewoński 2021-12-09 16:11:04 +01:00
parent 69ba8582a9
commit 4242b848d8

View file

@ -223,12 +223,18 @@ span[ data-mw-comment-start ] {
.oo-ui-popupWidget& {
// Animations
opacity: 0;
transform: translate( 0, -20px );
// Support: Safari
// 3D transform is needed to work around a Safari bug, which causes shadows to remain when the
// popup is removed (T297266, T226872). Otherwise this should just use 2D translate().
transform: translate3d( 0, -20px, 0 );
transition: opacity 0.2s, transform 0.2s;
&-fadein {
opacity: 1;
transform: translate( 0, 0 );
// Support: Safari
// 3D transform is needed to work around a Safari bug, which causes shadows to remain when the
// popup is removed (T297266, T226872). Otherwise this should just use 2D translate().
transform: translate3d( 0, 0, 0 );
}
}