My issue involves a box with a hidden caption, set to have position: absolute
and hidden using top: 100%
. The parent of this caption has overflow: hidden
. When I hover over the box, the caption slides up to become fully visible.
The problem arises during this transition where there seems to be a pixel discrepancy. This results in the caption being 1 pixel narrower than the parent box during the transition. However, once the transition is complete, everything appears as it should.
This issue occurs specifically in IE 11 on Windows 8.1 and Webkit browsers on Mac 10.11.2.
To see this effect, you can view it on this fiddle. If you don't observe the pixel bug initially, try resizing the window for it to appear.
You can also see the error in the screenshot below:
https://i.sstatic.net/trbGU.jpg
I have attempted several solutions including:
- Increasing the width of the caption by 1 pixel
- Adding
overflow-x: hidden
- Using
translate3d