Chromium Code Reviews| Index: third_party/WebKit/Source/core/css/fullscreen.css |
| diff --git a/third_party/WebKit/Source/core/css/fullscreen.css b/third_party/WebKit/Source/core/css/fullscreen.css |
| index bb9c79e0eae427ab0fa76dd0fc2fa00796f0c063..2ac10e224fc0aab3ff5bef3c95abdaab1aac1d0b 100644 |
| --- a/third_party/WebKit/Source/core/css/fullscreen.css |
| +++ b/third_party/WebKit/Source/core/css/fullscreen.css |
| @@ -1,60 +1,43 @@ |
| -:-webkit-full-screen { |
| - background-color: white; |
| - z-index: 2147483647 !important; |
| -} |
| - |
| -:root:-webkit-full-screen-ancestor { |
| - overflow: hidden !important; |
| -} |
| - |
| -:-webkit-full-screen-ancestor:not(iframe) { |
| - z-index: auto !important; |
| - position: static !important; |
| - opacity: 1 !important; |
| - transform: none !important; |
| - -webkit-mask: none !important; |
| - clip: none !important; |
| - -webkit-filter: none !important; |
| - transition: none !important; |
| - -webkit-box-reflect: none !important; |
| - -webkit-perspective: none !important; |
| - -webkit-transform-style: flat !important; |
| -} |
| - |
| -video:-webkit-full-screen, audio:-webkit-full-screen { |
| - background-color: transparent !important; |
| - position: relative !important; |
| +:not(:root):-webkit-full-screen { |
| + position: fixed !important; |
| + top: 0 !important; |
| + right: 0 !important; |
| + bottom: 0 !important; |
| left: 0 !important; |
| - top: 0 ! important; |
| margin: 0 !important; |
| + box-sizing: border-box !important; |
| min-width: 0 !important; |
| max-width: none !important; |
| min-height: 0 !important; |
| max-height: none !important; |
| width: 100% !important; |
| height: 100% !important; |
| - flex: 1 !important; |
| - display: block !important; |
| - transform: none !important; |
| + object-fit: contain !important; |
|
philipj_slow
2015/09/28 09:06:45
Why not transform:none !important here? So says ht
dsinclair
2015/09/28 17:14:58
Done.
|
| } |
| -img:-webkit-full-screen { |
| - width: auto; |
| - height: 100%; |
| - max-width: 100%; |
| +iframe:-webkit-full-screen { |
| + border: none; |
|
philipj_slow
2015/09/28 09:06:45
Also padding:0 !important
dsinclair
2015/09/28 17:14:58
Done.
|
| } |
| -iframe:-webkit-full-screen { |
| - margin: 0 !important; |
| - padding: 0 !important; |
| - border: 0 !important; |
| - position: fixed !important; |
| - min-width: 0 !important; |
| - max-width: none !important; |
| - min-height: 0 !important; |
| - max-height: none !important; |
| - width: 100% !important; |
| - height: 100% !important; |
| - left: 0 !important; |
| - top: 0 !important; |
| +:-webkit-full-screen::backdrop { |
|
philipj_slow
2015/09/28 09:06:46
Is the ::backdrop { display:block !important; } ru
dsinclair
2015/09/28 17:14:58
Doesn't look like it, added here.
|
| + position: fixed; |
| + top: 0; |
| + right: 0; |
| + bottom: 0; |
| + left: 0; |
| + background: black; |
| +} |
| + |
| +/* Anything below are extensions over what the Fullscreen API (14 October 2014) mandates. */ |
| + |
| +/* This is required for https://crbug.com/356282 */ |
| +video:-webkit-full-screen, audio:-webkit-full-screen { |
| + transform: none !important; |
| +} |
| + |
| +/* This prevents video from overflowing the viewport in |
| + virtual/android/fullscreen/video-scrolled-iframe.html |
| + FIXME: We should remove this (see crbug.com/441890). */ |
| +:root:-webkit-full-screen-ancestor { |
| + overflow: hidden; |
| } |