diff --git a/photomap/frontend/static/css/grid-view.css b/photomap/frontend/static/css/grid-view.css index db11a130..3aa19199 100644 --- a/photomap/frontend/static/css/grid-view.css +++ b/photomap/frontend/static/css/grid-view.css @@ -22,14 +22,14 @@ } /* The sheets are hidden in fullscreen, so the grid gets the whole height. */ -html.mobile-sheets:fullscreen #gridViewSwiper, -html.mobile-sheets:-webkit-full-screen #gridViewSwiper { +/* (:is() keeps an unknown prefixed pseudo-class from dropping the rule; see + seek-slider.css.) */ +html.mobile-sheets:is(:fullscreen, :-webkit-full-screen) #gridViewSwiper { height: var(--visible-viewport-height, 100dvh); } /* The badge is hidden in fullscreen (seek-slider.css), so give the row back. */ -:fullscreen #gridViewSwiper, -:-webkit-full-screen #gridViewSwiper { +:is(:fullscreen, :-webkit-full-screen) #gridViewSwiper { --grid-top-reserve: 0px; } diff --git a/photomap/frontend/static/css/mobile-sheets.css b/photomap/frontend/static/css/mobile-sheets.css index 6c0d2124..f685e18a 100644 --- a/photomap/frontend/static/css/mobile-sheets.css +++ b/photomap/frontend/static/css/mobile-sheets.css @@ -87,9 +87,9 @@ outline-offset: -2px; } -/* Hidden with the rest of the controls in fullscreen. */ -html.mobile-sheets:fullscreen .mobile-sheet, -html.mobile-sheets:-webkit-full-screen .mobile-sheet { +/* Hidden with the rest of the controls in fullscreen. (:is() keeps an unknown + prefixed pseudo-class from dropping the rule; see seek-slider.css.) */ +html.mobile-sheets:is(:fullscreen, :-webkit-full-screen) .mobile-sheet { display: none !important; } diff --git a/photomap/frontend/static/css/seek-slider.css b/photomap/frontend/static/css/seek-slider.css index 6ac19553..8c4b3383 100644 --- a/photomap/frontend/static/css/seek-slider.css +++ b/photomap/frontend/static/css/seek-slider.css @@ -118,11 +118,14 @@ flex-direction: column; } +/* Fullscreen selectors go inside :is(), whose selector list is forgiving: a + browser drops just the alternative it does not know there. In a plain + selector list one unknown pseudo-class (Firefox rejects + :-webkit-full-screen, Chromium :-moz-full-screen) throws out the whole rule + (#442). The prefixed form is for Safari before 16.4. */ + /* Hide score display in fullscreen mode */ -:fullscreen .fixed-score-display, -:-webkit-full-screen .fixed-score-display, -:-moz-full-screen .fixed-score-display, -:-ms-fullscreen .fixed-score-display { +:is(:fullscreen, :-webkit-full-screen) .fixed-score-display { display: none !important; }