Changes

Jump to: navigation, search

Gecko:FullScreenAPI

1,019 bytes added, 23:14, 6 April 2011
add issues: avoiding ancestory reflow, avoiding drawing anything else
While a Document is in the fullscreen state, the fullscreen media type is active for the document.
Suggested UA stylesheet rulerules:
/* A fullscreen element that is not the root element should be stretched
If we resolve the naming issue based on one word rather than two, then we'll rename this CSS feature accordingly ( :fullscreen , media query selector "fullscreen" )
 
=== avoiding ancestor reflow ===
Currently, the suggested UA stylesheet rules for a non-root fullscreen element take it out of the flow and make it position fixed, which has the side-effect of causing its ancestors to reflow, which is unnecessary, and thus an undesirable performance hit.
 
Instead, we should consider simply defining the fullscreened element as creating a new view with itself as the root box of a CSS presentation, with its own opaque CSS canvas (as defined in CSS), thereby avoiding the reflow problem.
 
The underlying background of this new opaque CSS canvas comes from the fullscreened element, just as the underlying background of a window comes from the root element of the document in that window.
 
=== avoiding drawing anything else ===
Also, the suggested UA stylesheet rules use z-index to put the fullscreened element above everything else. Instead we may want to specify that when something is fullscreened, that we don't bother rendering any other windows/tabs, nor the parent document.
Canmove, confirm
2,672
edits

Navigation menu