Fixing 1px precision of visibility calculation for a child of an element
with overflow hidden. Fixes issue 5140