[whatwg] Sandboxing ideas

Jon Barnett jonbarnett at gmail.com
Tue May 8 10:47:48 PDT 2007


On 5/8/07, Henri Sivonen <hsivonen at iki.fi> wrote:
>
> On May 8, 2007, at 19:32, Dean Edwards wrote:
>
> > Kind of like an <iframe> but without an external source.
>
> My understanding is that main issue with iframe isn't the external
> source but that the view port establishment.
>
> I wonder if this issue could be solved on the layout/CSS level by
> providing a way to make the height of an iframe depend on the actual
> height of the root element of the document loaded in the iframe. That
> is, would it be feasible to make the iframe contents have the layout/
> UI feel of a part of the parent page while keeping the DOMs and
> script security contexts separate?
>
> --
> Henri Sivonen
> hsivonen at iki.fi
> http://hsivonen.iki.fi/


http://www.w3.org/TR/css3-box/#intrinsic0 (and also CSS2 10.6)
Since CSS doesn't attempt to specify the intrinsic width of a document in an
iframe, maybe HTML5 should specify that the intrinsic width of a document
is:
- if the CSS width property is specified on the html element, the margin-box
of the page at that width (which may have overflow)
- else, if the CSS min-width property is specified on the html element, the
margin-box of the page at that width (which may have overflow)
- else, the smallest width the page can have without horizontal scrolling
and the intrinsic height of the document is:
- if the CSS height or min-height property are set, similar to above,
- else, the smallest height the page can have at the intrinsic width of the
document without vertical scrolling



-- 
Jon Barnett
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.whatwg.org/pipermail/whatwg-whatwg.org/attachments/20070508/63906d76/attachment.htm>


More information about the whatwg mailing list