Bug 702295 - Don't apply overflow:hidden to full-screen-ancestor chrome roots. r=bz
authorChris Pearce <chris@pearce.org.nz>
Fri, 18 Nov 2011 15:22:48 +1300
changeset 80402 974111a53365f948e6360149af4d4ebf0ac9f4b0
parent 80401 2c6e762d9c2a0ee739361cb5afe45f0208f4f7aa
child 80403 190255a17276b98f076f62f5c3648368dd0c4b9e
push id3436
push usercpearce@mozilla.com
push dateFri, 18 Nov 2011 02:23:06 +0000
treeherdermozilla-inbound@974111a53365 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersbz
bugs702295
milestone11.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 702295 - Don't apply overflow:hidden to full-screen-ancestor chrome roots. r=bz
layout/style/ua.css
--- a/layout/style/ua.css
+++ b/layout/style/ua.css
@@ -34,16 +34,17 @@
  * the terms of any one of the MPL, the GPL or the LGPL.
  *
  * ***** END LICENSE BLOCK ***** */
 
 @import url(resource://gre-resources/html.css);
 @import url(chrome://global/content/xul.css);
 
 @namespace parsererror url(http://www.mozilla.org/newlayout/xml/parsererror.xml);
+@namespace xul url(http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul);
 
 /* magic -- some of these rules are important to keep pages from overriding
             them
 */
 
 /* Tables */
 
 *|*::-moz-table {
@@ -248,18 +249,19 @@
   bottom: 0 !important;
   z-index: 2147483647 !important;
   background: black;
   width: 100% !important;
   height: 100% !important;
 }
 
 /* If there is a full-screen element that is not the root then
-   we should hide the viewport scrollbar. */
-*|*:root:-moz-full-screen-ancestor {
+   we should hide the viewport scrollbar. We exclude the chrome
+   document to prevent reframing of contained plugins. */
+:not(xul|*):root:-moz-full-screen-ancestor {
   overflow: hidden !important;
 }
 
 *|*:-moz-full-screen-ancestor {
   /* Ancestors of a full-screen element should not induce stacking contexts
      that would prevent the full-screen element from being on top. */
   z-index:auto !important;
   /* Ancestors of a full-screen element should not be partially transparent,