W3C home > Mailing lists > Public > whatwg@whatwg.org > May 2008

[whatwg] iframe width/height

From: James Justin Harrell <herorev@yahoo.com>
Date: Fri, 16 May 2008 09:57:51 -0700 (PDT)
Message-ID: <726141.71070.qm@web50105.mail.re2.yahoo.com>
> > Shouldn't iframe keep its width and height attributes just like the 
> > other embedded content elements?
> Documents don't have intrinsic dimensions, and the user's default font 
> size is likely to vary from user to usr. How would you know what height 
> and width to give?

The same way you would know what height and width to give to a non-replaced element. Why should an embedded document not be able to render as if the contents of the document were present inline in the parent document? Backwards compatibility should probably trump better behavior here, but why is it not possible to specify this through CSS?

I've heard of this problem multiple times. For example,
Received on Friday, 16 May 2008 09:57:51 UTC

This archive was generated by hypermail 2.4.0 : Wednesday, 22 January 2020 16:59:02 UTC