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

[whatwg] overflow of seamless iframes

From: Ian Hickson <ian@hixie.ch>
Date: Tue, 19 Aug 2008 00:21:49 +0000 (UTC)
Message-ID: <Pine.LNX.4.62.0808190019570.9667@hixie.dreamhostps.com>
On Mon, 18 Aug 2008, Robert O'Callahan wrote:
> 
> Suppose the iframe's document is
> <body style="position:relative; top:-100px; height:500px;
> background:yellow;"></body>
> What's the height of the bounding box? 400px or 500px?

500px.


> > If we allow the contents to flow out of the box, then we also allow 
> > blog comments to start overlapping other content on the page.
> 
> Yeah, although setting overflow:hidden on the iframe could be used to 
> prevent that.

Fair enough. In that case I'd rather we had this in the UA stylesheet:

   iframe[seamless][sandbox] { overflow: hidden ! important; }

-- 
Ian Hickson               U+1047E                )\._.,--....,'``.    fL
http://ln.hixie.ch/       U+263A                /,   _.. \   _\  ;`._ ,.
Things that are impossible just take longer.   `._.-(,_..'--(,_..'`-.;.'
Received on Monday, 18 August 2008 17:21:49 UTC

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