OLD | NEW |
1 /* | 1 /* |
2 * User-agent level style sheet defaults for the Fullscreen API | 2 * User-agent level style sheet defaults for the Fullscreen API |
3 * https://fullscreen.spec.whatwg.org/#user-agent-level-style-sheet-defaults | 3 * https://fullscreen.spec.whatwg.org/#user-agent-level-style-sheet-defaults |
4 * | 4 * |
5 * FIXME: Use the :fullscreen pseudo-class instead of :-webkit-full-screen. | 5 * FIXME: Use the :fullscreen pseudo-class instead of :-webkit-full-screen. |
6 * (see crbug.com/402378) | 6 * (see crbug.com/402378) |
7 */ | 7 */ |
8 | 8 |
9 :not(:root):-webkit-full-screen { | 9 :not(:root):-webkit-full-screen { |
10 position: fixed !important; | 10 position: fixed !important; |
(...skipping 12 matching lines...) Expand all Loading... |
23 object-fit: contain !important; | 23 object-fit: contain !important; |
24 transform: none !important; | 24 transform: none !important; |
25 } | 25 } |
26 | 26 |
27 iframe:-webkit-full-screen { | 27 iframe:-webkit-full-screen { |
28 border: none; | 28 border: none; |
29 } | 29 } |
30 | 30 |
31 /* Anything below are extensions over what the Fullscreen API mandates. */ | 31 /* Anything below are extensions over what the Fullscreen API mandates. */ |
32 | 32 |
| 33 /* The border and padding of fullscreen iframes are removed, as there are sites |
| 34 that set border or padding on iframes with the apparent expectation that they |
| 35 will be ignored in fullscreen (see crbug.com/468292 and crbug.com/469133). |
| 36 TODO(philipj): Remove this or merge into the above block when the spec bug |
| 37 has been resolved: https://www.w3.org/Bugs/Public/show_bug.cgi?id=28332 */ |
| 38 iframe:-webkit-full-screen { |
| 39 border: none !important; |
| 40 padding: 0 !important; |
| 41 } |
| 42 |
33 /* FIXME: Remove these rules when moving Fullscreen to top layer. | 43 /* FIXME: Remove these rules when moving Fullscreen to top layer. |
34 (see crbug.com/240576) */ | 44 (see crbug.com/240576) */ |
35 :-webkit-full-screen { | 45 :-webkit-full-screen { |
36 background-color: white; | 46 background-color: white; |
37 z-index: 2147483647 !important; | 47 z-index: 2147483647 !important; |
38 } | 48 } |
39 | 49 |
40 video:-webkit-full-screen, audio:-webkit-full-screen { | 50 video:-webkit-full-screen, audio:-webkit-full-screen { |
41 background-color: transparent !important; | 51 background-color: transparent !important; |
42 } | 52 } |
(...skipping 11 matching lines...) Expand all Loading... |
54 -webkit-perspective: none !important; | 64 -webkit-perspective: none !important; |
55 -webkit-transform-style: flat !important; | 65 -webkit-transform-style: flat !important; |
56 } | 66 } |
57 | 67 |
58 /* This prevents video from overflowing the viewport in | 68 /* This prevents video from overflowing the viewport in |
59 virtual/android/fullscreen/video-scrolled-iframe.html | 69 virtual/android/fullscreen/video-scrolled-iframe.html |
60 FIXME: We should remove this (see crbug.com/441890). */ | 70 FIXME: We should remove this (see crbug.com/441890). */ |
61 :-webkit-full-screen-ancestor { | 71 :-webkit-full-screen-ancestor { |
62 overflow: hidden !important; | 72 overflow: hidden !important; |
63 } | 73 } |
OLD | NEW |