Fix issue with css perspective inheritance