<div dir="ltr">On Mon, Aug 18, 2008 at 6:45 PM, Ian Hickson <span dir="ltr"><ian@hixie.ch></span> wrote:<br><div class="gmail_quote"><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div>On Mon, 18 Aug 2008, Robert O'Callahan wrote:<br>
> On Mon, Aug 18, 2008 at 4:40 PM, Ian Hickson <ian@hixie.ch> wrote:<br>
> > On Mon, 18 Aug 2008, Robert O'Callahan wrote:<br>
> > > > Note that the default width and height are adjusted for seamless<br>
> > > > iframes to match the width that the element would have if it was a<br>
> > > > non-replaced block-level element with 'width: auto', and the<br>
> > > > height of the bounding box around the content rendered in the<br>
> > > > iframe at its current width, respectively.<br>
> > ><br>
> > > "The bounding box" is a bit ambiguous. If the content overflows<br>
> > > vertically above the iframe's viewport, does that contribute to the<br>
> > > height of the bounding box?<br>
> ><br>
> > As far as I can tell there is no ambiguity to the concept of the<br>
> > bounding box of the content in the canvas, especially given the way<br>
> > the initial containing block is forced to zero height.<br>
><br>
> What's the answer to my question then? Should I have been able to derive<br>
> it somehow?<br>
<br>
</div>I don't understand the question. How does the viewport affect the bounding<br>
box?</blockquote><div><br>Suppose the iframe's document is<br><body style="position:relative; top:-100px; height:500px; background:yellow;"></body><br>What's the height of the bounding box? 400px or 500px?<br>
<br></div><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
I just thought of another problem with allowing the contents of a<br>
"seamless" iframe to overflow outside the iframe box.<br>
<br>
One of the main uses for this will be to sandbox blog comments, using the<br>
yet-to-be-defined doc="" attribute, as in:<br>
<br>
<iframe doc="<!DOCTYPE HTML><p>You suck"<br>
seamless sandbox="allow-same-origin"></iframe><br>
<br>
If we allow the contents to flow out of the box, then we also allow blog<br>
comments to start overlapping other content on the page.</blockquote><div><br>Yeah, although setting overflow:hidden on the iframe could be used to prevent that.<br><br></div><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
> I'm concerned about the use case of very wide content in the iframe<br><div>
> (i.e. content overflowing the root element horizontally); for example a<br>
> forum with many wide messages, each of which is a seamless iframe. Right<br>
> now it seems the choices are to either have a horizontal scrollbar in<br>
> each message or clip each message horizontally, there's no way to make<br>
> it work like a forum page.<br>
<br>
</div>The way forum pages work now is that the content ends up screwing up the<br>
rest of the page, so I think that's a good thing. :-) People work around<br>
this now by forcing line break opportunities to exist in long URLs, etc,<br>
or by setting overflow:auto on user-submitted content.</blockquote><div><br>Yes, although it would be nice to offer authors a choice. Oh well, I suppose it doesn't matter too much.<br><br></div>Rob<br></div>-- <br>"He was pierced for our transgressions, he was crushed for our iniquities; the punishment that brought us peace was upon him, and by his wounds we are healed. We all, like sheep, have gone astray, each of us has turned to his own way; and the LORD has laid on him the iniquity of us all." [Isaiah 53:5-6]<br>
</div>