Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(257)

Side by Side Diff: third_party/WebKit/Source/core/css/fullscreen.css

Issue 1363023005: Implement FullScreen using top layer. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 :-webkit-full-screen { 1 :not(:root):-webkit-full-screen {
2 background-color: white; 2 position: fixed !important;
3 z-index: 2147483647 !important; 3 top: 0 !important;
4 } 4 right: 0 !important;
5 5 bottom: 0 !important;
6 :root:-webkit-full-screen-ancestor {
7 overflow: hidden !important;
8 }
9
10 :-webkit-full-screen-ancestor:not(iframe) {
11 z-index: auto !important;
12 position: static !important;
13 opacity: 1 !important;
14 transform: none !important;
15 -webkit-mask: none !important;
16 clip: none !important;
17 -webkit-filter: none !important;
18 transition: none !important;
19 -webkit-box-reflect: none !important;
20 -webkit-perspective: none !important;
21 -webkit-transform-style: flat !important;
22 }
23
24 video:-webkit-full-screen, audio:-webkit-full-screen {
25 background-color: transparent !important;
26 position: relative !important;
27 left: 0 !important; 6 left: 0 !important;
28 top: 0 ! important;
29 margin: 0 !important; 7 margin: 0 !important;
8 box-sizing: border-box !important;
30 min-width: 0 !important; 9 min-width: 0 !important;
31 max-width: none !important; 10 max-width: none !important;
32 min-height: 0 !important; 11 min-height: 0 !important;
33 max-height: none !important; 12 max-height: none !important;
34 width: 100% !important; 13 width: 100% !important;
35 height: 100% !important; 14 height: 100% !important;
36 flex: 1 !important; 15 object-fit: contain !important;
37 display: block !important;
38 transform: none !important; 16 transform: none !important;
39 } 17 }
40 18
41 img:-webkit-full-screen { 19 iframe:-webkit-full-screen {
42 width: auto; 20 border: none;
philipj_slow 2015/09/29 08:05:23 This should be !important per spec.
dsinclair 2015/10/01 14:50:13 Done.
43 height: 100%; 21 padding: 0 !important;
44 max-width: 100%;
45 } 22 }
46 23
47 iframe:-webkit-full-screen { 24 :-webkit-full-screen::backdrop {
philipj_slow 2015/09/29 12:31:52 The spec was just changed, so this should now incl
dsinclair 2015/10/01 14:50:13 Like this?
philipj_slow 2015/10/01 15:00:23 Yep, looks right in PS4.
48 margin: 0 !important; 25 display: block !important;
philipj_slow 2015/09/29 08:05:22 This should be in a separate ::backdrop { } block
dsinclair 2015/10/01 14:50:13 Moved to its own CL. https://chromiumcodereview.ap
49 padding: 0 !important; 26 position: fixed;
50 border: 0 !important; 27 top: 0;
51 position: fixed !important; 28 right: 0;
52 min-width: 0 !important; 29 bottom: 0;
53 max-width: none !important; 30 left: 0;
54 min-height: 0 !important; 31 background: black;
55 max-height: none !important;
56 width: 100% !important;
57 height: 100% !important;
58 left: 0 !important;
59 top: 0 !important;
60 } 32 }
33
34 /* Anything below are extensions over what the Fullscreen API (14 October 2014) mandates. */
Julien - ping for review 2015/10/01 00:24:40 You probably want to update the Fullscreen API spe
dsinclair 2015/10/01 14:50:13 Done.
35
36 /* This is required for https://crbug.com/356282 */
37 video:-webkit-full-screen, audio:-webkit-full-screen {
38 transform: none !important;
39 }
40
41 /* This prevents video from overflowing the viewport in
42 virtual/android/fullscreen/video-scrolled-iframe.html
43 FIXME: We should remove this (see crbug.com/441890). */
44 :root:-webkit-full-screen-ancestor {
45 overflow: hidden;
46 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698