requireValidDimension

Ensure dimension such as corner radius and border width are 0 or greater

Parameters

dimension

the dimension to validate

Throws

if dimension is less than 0