This is an archived snapshot of W3C's public bugzilla bug tracker, decommissioned in April 2019. Please see the home page for more details.
http://fullscreen.spec.whatwg.org/#user-agent-level-style-sheet-defaults <!DOCTYPE html> <meta name="viewport" content="width=device-width"> <style> body { background: pink; margin: 0; } iframe { border: 0; height: 270px; max-height: 50%; width: 100%; } </style> <iframe src="//www.youtube.com/embed/pg5iRruqcps"></iframe> This is a minimized version of http://m.vk.com/video10345392_166569492 The author style sheet says max-height: 50% and since the user agent style sheet doesn't say differently, in fullscreen the iframe fails to fill the viewport. Unless there's some case where this makes sense, min-width, min-height, max-width and max-height should all be 100% in the UA style sheet. It fixes the problem in the wild, at least.
roc, WDYT?
The Gecko styles for *|*:not(:root):-moz-full-screen are: position: fixed !important; top: 0 !important; left: 0 !important; right: 0 !important; bottom: 0 !important; z-index: 2147483647 !important; background: black; width: 100% !important; height: 100% !important; margin: 0 !important; min-width: 0 !important; max-width: none !important; min-height: 0 !important; max-height: none !important; box-sizing: border-box !important; which I suspects answers your question about what roc thinks, but also note the box-sizing and z-index bits....
z-index is only an artifact of the way we implement fullscreen. If we implemented it the way the spec says, with a magic extra always-on-top layer, we wouldn't need it. So I don't think that needs to be required in the UA sheet. box-sizing:border-box does need to be in the UA sheet though.
The specification has box-sizing. We don't have anything as !important though. Wouldn't we want to let developers override these things?
Also, does the CSS specification even allow !important for user agent style sheets?
Blink also has !important sprinkled all over its fullscreen.css UA style sheet, FWIW.
It seems per http://dev.w3.org/csswg/css-cascade/ user agent style sheets can do this. Okay.
https://github.com/whatwg/fullscreen/commit/134cdeb6d6d3f7c3bdb3c9df754185c24a59353f