Percentage Widths

According to the W3C spec, a legal value for width is a <percentage>, which is defined as "an optional sign character ('+' or '-', with '+' being the default) immediately followed by a <number> immediately followed by '%'." As the definition of <number> includes "can be zero or more digits followed by a dot (.) followed by one or more digits,", the browser must support decimal values for widths. Safari (1.2.2) does not, instead calculating the pixel width value from the truncated width-as-integer value.

Test Case

50%
50.1%
50.2%
50.3%
50.4%
50.5%
50.6%
50.7%
50.8%
50.9%
51%
51.1%
51.2%
51.3%
51.4%
51.5%
51.6%
51.7%
51.8%
51.9%

Safari (1.2.2) display

50%
50.1%
50.2%
50.3%
50.4%
50.5%
50.6%
50.7%
50.8%
50.9%
51%
51.1%
51.2%
51.3%
51.4%
51.5%
51.6%
51.7%
51.8%
51.9%