This is an archived snapshot of W3C's public bugzilla bug tracker, decommissioned in April 2019. Please see the home page for more details.

Bug 6544 - Allow width=0 on <img> and <iframe>
Summary: Allow width=0 on <img> and <iframe>
Alias: None
Product: HTML WG
Classification: Unclassified
Component: pre-LC1 HTML5 spec (editor: Ian Hickson) (show other bugs)
Version: unspecified
Hardware: All All
: P2 normal
Target Milestone: ---
Assignee: Ian 'Hixie' Hickson
QA Contact: HTML WG Bugzilla archive list
Depends on:
Reported: 2009-02-09 09:55 UTC by Simon Pieters
Modified: 2010-10-04 13:59 UTC (History)
3 users (show)

See Also:


Description Simon Pieters 2009-02-09 09:55:26 UTC
Some pages use <img> or <iframe> for the purpose of loading something without showing it (e.g. a tracker), and so use width=0 height=0. HTML5 requires a positive integer for width and height, meaning that authors have to jump through unnecessary hoops if they care about validation. So I'd suggest to allow 0 in width/height.
Comment 1 Ian 'Hixie' Hickson 2009-04-01 00:12:56 UTC
Can't you just use the hidden="" attribute?