Use exactly calculated value to work around a Chrome bug

Height of 3.1em calculates to 40.3px here, which is larger than the
parent element's height of 40px, apparently causing the background-image
to disappear after the rotation animation is removed.

Bug: T196610
Change-Id: I1458be6408699723977ccb589ed8d760f4ac7941
This commit is contained in:
Bartosz Dziewoński 2018-06-26 16:37:50 +02:00
parent 53a6d3a22f
commit f010a2d8b8
1 changed files with 2 additions and 1 deletions

View File

@ -11,7 +11,8 @@
display: block;
width: 28px;
/* This hides the text but shows the background image */
padding-top: 3.1em;
/* Must not exceed parent's height, otherwise the background disappears on Chrome (T196610) */
padding-top: 2.5em / 0.8125;
height: 0;
overflow: hidden;
background-position: 5px 60%;