<html><head></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div><div>On Jan 28, 2010, at 6:42 PM, Robert O'Callahan wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite">On Fri, Jan 29, 2010 at 12:51 PM, Simon Fraser <span dir="ltr"><<a href="mailto:smfr@me.com" target="_blank">smfr@me.com</a>></span> wrote:<br><div class="gmail_quote"><blockquote class="gmail_quote" style="margin-top: 0pt; margin-right: 0pt; margin-bottom: 0pt; margin-left: 0.8ex; border-left-width: 1px; border-left-style: solid; border-left-color: rgb(204, 204, 204); padding-left: 1ex; position: static; z-index: auto; ">

<div style="word-wrap: break-word;">We have been discussing a more general fullscreen API that lets you take the page fullscreen (perhaps with the ability to focus on a single element), as Maciej mentions. We have not decided on a final form for this API, nor have we resolved whether it's possible to do some nice transition between the two modes. We have talked at some length about the security issues.<div>

<br></div><div>Input on what people would like from this API is welcome, as are ideas on how the transitions should work.</div></div></blockquote></div><br>1) Should be convenient for authors to make any element in a page display fullscreen<br>

2) Should support in-page activation UI for discoverability<br></blockquote><div><br></div>I agree with Boris that we should leave this up to the page author.</div><div><br><blockquote type="cite">3) Should support changing the layout of the element when you enter/exit fullscreen mode. For example, authors probably want some controls to be fixed size while 
other content fills the screen.<br>4) Should accommodate potential UA security concerns, e.g. by allowing the transition to fullscreen mode to happen asynchronously after the user has confirmed permission<br></blockquote><div><br></div>Agreed.</div><div><blockquote type="cite"><font class="Apple-style-span" color="#000000"><br></font></blockquote><blockquote type="cite">New API for all elements:<br>void enterFullscreen(optional boolean enableKeys);<br>void exitFullscreen();<br>boolean attribute supportsFullscreen;<br>boolean attribute displayingFullscreen;<br>"beginfullscreen" and "endfullscreen" events<br></blockquote><div><br></div>Those seem reasonable for a proposal where a single element is taken fullscreen.</div><div><br><blockquote type="cite">While an element is fullscreen, the UA imposes CSS style "position:fixed; left:0; top:0; right:0; bottom:0" on the element and aligns the viewport of its DOM window with the screen. Only the element and its children are rendered, as a single CSS stacking context.<br></blockquote></div><br><div>So this makes it a very element-focused API (as does the enterFullscreen() method on Element that you propose above).</div><div><br></div><div>Another approach would be to leave it entirely up to the page author to style their page differently when in fullscreen, and not have the API force them to focus on one element. Then the API would probably be on the Window object, and the UA would simply transition the view to a fullscreen presentation. There could be a pseudo-class to the body, or a way to use media queries to allow the author can apply different styles for fullscreen.</div><div><br></div><div>In this scenario the author is not forced to nest all their fullscreen content under one element, and can continue to show the rest of the page content (maybe dimmed out by a semi-transparent overlay div) in the background.</div><div><br></div><div>The disadvantage of this approach is that it makes it much harder for the UA to do any kind of automatic transitions between the two presentations (though it's not clear to me that nice automatic transitions will be possible with the element-based API either).</div><div><br></div><div>Simon</div><div><br></div></body></html>