I am currently in the process of developing an ASP.NET control that generates <object>
and <embed>
tags. In order to ensure compatibility, I intend to add "Height" and "Width" properties to the control as both tags require these attributes. Additionally, I am considering implementing a validation system for height and width values during runtime. My main concern is determining the acceptable ranges of sizes to validate against.
I have come across various types of height and width settings in the past. However, I am uncertain if all the formats I have encountered are valid. Where can I find a comprehensive list of accepted formats for height and width attributes? Moreover, are there any unconventional values that may seem invalid but are actually used as workarounds for achieving cross-browser compatibility?
- 1px
- 10%
- 99.99%
- 100
While I am contemplating allowing users to input custom values for height and width, my curiosity has been piqued regarding the standard guidelines.