Added extra check to make sure css calc() is correctly applied