Using element style properties in calculations is unreliable.