From acf9313ae5c7951bff0a623375d5da9e1a860399 Mon Sep 17 00:00:00 2001 From: Daniel Holbert Date: Sun, 24 Aug 2014 22:11:15 -0700 Subject: [PATCH] Bug 1055977 part 1: Use !important (and 'initial') in full-screen-override.css, to more thoroughly prevent ancestors of a fullscreen element from creating stacking contexts. r=dbaron --- layout/style/full-screen-override.css | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/layout/style/full-screen-override.css b/layout/style/full-screen-override.css index 3a0cf7cca7b9..c4417af6be4b 100644 --- a/layout/style/full-screen-override.css +++ b/layout/style/full-screen-override.css @@ -6,19 +6,19 @@ *|*:-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; + z-index: initial !important; /* Ancestors of a full-screen element should not be partially transparent, since that would apply to the full-screen element and make the page visible behind it. It would also create a pseudo-stacking-context that would let content draw on top of the full-screen element. */ - opacity: 1; + opacity: initial !important; /* Ancestors of a full-screen element should not apply SVG masking, clipping, or filtering, since that would affect the full-screen element and create a pseudo- stacking context. */ - mask: none; - clip: auto; - filter: none; - -moz-transform: none; - will-change: auto; + mask: initial !important; + clip: initial !important; + filter: initial !important; + transform: initial !important; + will-change: initial !important; }