1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91
|
:not(:root):fullscreen, :xr-overlay {
position: fixed !important;
inset: 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;
transform: none !important;
/* intentionally not !important */
object-fit: contain;
user-select: text;
}
/* Reducing specificity to ensure [inert] UA rule overrides this one for the
interactivity declaration. */
:where(:fullscreen) {
overlay: auto !important;
interactivity: auto;
}
iframe:fullscreen {
border: none !important;
padding: 0 !important;
}
/* TODO(foolip): In the spec, there's a ::backdrop block with the properties
shared with dialog::backdrop (see html.css). */
:not(:root):fullscreen::backdrop {
position: fixed;
inset: 0;
background: black;
}
@media (vertical-viewport-segments: 2) {
:not(:root):fullscreen {
height: env(viewport-segment-bottom 0 0, 100%) !important;
width: 100% !important;
}
}
@media (horizontal-viewport-segments: 2) {
:not(:root):fullscreen {
height: 100% !important;
width: env(viewport-segment-right 0 0, 100%) !important;
}
}
/* Anything below are extensions over what the Fullscreen API (29 May 2018) mandates. */
/* This prevents video from overflowing the viewport in
virtual/android/fullscreen/video-scrolled-iframe.html (crbug.com/441890) and
removes scrollbars caused by html { overflow: scroll } (crbug.com/543946).
TODO(foolip): This is done differently in Gecko, find a fix not involving the
ancestor selector in https://github.com/whatwg/fullscreen/issues/19. */
:root:-webkit-full-screen-ancestor {
overflow: hidden !important;
}
:fullscreen:-internal-video-persistent-ancestor :not(:-internal-video-persistent-ancestor) {
display: none !important;
}
:-internal-video-persistent {
position: fixed !important;
left: 0 !important;
top: 0 !important;
margin: 0 !important;
min-width: 0 !important;
max-width: none !important;
min-height: 0 !important;
max-height: none !important;
width: 100% !important;
height: 100% !important;
transform: none !important;
background-color: black !important;
z-index: 2147483647 !important;
}
:xr-overlay {
/* force a transparent background */
background: rgba(0,0,0,0) !important;
/* act as containing block for descendants */
contain: paint !important;
}
|