**Steps to reproduce the behavior:** Set width to `width='50%'` **Expected behavior:** `max-width` of the element will be set to 2%, **without** showing an error that the width can only be a number. **Actual behavior:** `max-width` of the element is set to 2%, but is showing an error that the width can only be a number.