Skip to content

Commit

Permalink
Bug 743198 part 7 - Add :fullscreen pseudo class. r=heycam
Browse files Browse the repository at this point in the history
  • Loading branch information
upsuper committed Feb 17, 2016
1 parent 555c433 commit 52ba42f
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion layout/style/html.css
Original file line number Diff line number Diff line change
Expand Up @@ -725,7 +725,7 @@ area {
display: none ! important;
}

iframe:-moz-full-screen {
iframe:fullscreen {
/* iframes in full-screen mode don't show a border. */
border: none !important;
padding: 0 !important;
Expand Down
1 change: 1 addition & 0 deletions layout/style/nsCSSPseudoClassList.h
Original file line number Diff line number Diff line change
Expand Up @@ -160,6 +160,7 @@ CSS_STATE_PSEUDO_CLASS(mozDevtoolsHighlighted, ":-moz-devtools-highlighted", 0,

// Matches the element which is being displayed full-screen, and
// any containing frames.
CSS_STATE_PSEUDO_CLASS(fullscreen, ":fullscreen", 0, "", NS_EVENT_STATE_FULL_SCREEN)
CSS_STATE_PSEUDO_CLASS(mozFullScreen, ":-moz-full-screen", 0, "", NS_EVENT_STATE_FULL_SCREEN)

// Matches any element which is an ancestor of the DOM full-screen element,
Expand Down
4 changes: 2 additions & 2 deletions layout/style/ua.css
Original file line number Diff line number Diff line change
Expand Up @@ -276,7 +276,7 @@

}

*|*:-moz-full-screen:not(:root) {
*|*:fullscreen:not(:root) {
position: fixed !important;
top: 0 !important;
left: 0 !important;
Expand All @@ -296,7 +296,7 @@

/* Selectors here should match the check in
* nsViewportFrame.cpp:ShouldInTopLayerForFullscreen() */
*|*:-moz-full-screen:not(:root):not(:-moz-browser-frame) {
*|*:fullscreen:not(:root):not(:-moz-browser-frame) {
-moz-top-layer: top !important;
}

Expand Down

0 comments on commit 52ba42f

Please sign in to comment.