W3C home > Mailing lists > Public > public-html-comments@w3.org > November 2011

Image width specification in html5

From: David Swindlehurst <davidms@uwclub.net>
Date: Sun, 20 Nov 2011 13:55:03 +0000
Message-ID: <4EC906B7.5070402@uwclub.net>
To: public-html-comments@w3.org
Hi folks:

The W3C Validator for html5 (as with previous versions) accepts element 
widths specified in percentages, through CSS, which enables accurate 
page rendering for any size of display. EXCEPT that it refuses to accept 
percentages for specifying width for the img tag! For instance

<div class="?"><img src="image.png" alt="ancient grey-haired awkward 
person" width="25%" /></div>

results in an error - the Validator expects an absolute number (of 
pixels!). Fixing image width like this prevents correct rendering of the 
page in any size of display different from the writer's original. 
Although there is a mass of insignificant discussion in the current 
Specification about the "alt" tag, there is no mention of image sizing 
at all, which seems to me to be far more important. Does the Spec need 
revising, or is the Validator wrong in expecting an absolute number?

Received on Monday, 21 November 2011 07:49:37 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 20:04:10 UTC