Apply border-box to hidden blocks.