[whatwg] overflow of seamless iframes

Ian Hickson ian at hixie.ch
Mon Aug 18 17:21:49 PDT 2008


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.   `._.-(,_..'--(,_..'`-.;.'



More information about the whatwg mailing list