Contact emails m...@chromium.org
Specification https://www.w3.org/TR/cssom-view-1/#the-screen-interface Summary Make window.screen report the display size, instead of frame size, when in fullscreen. A speculative browser-specific workaround <https://crrev.com/c/2101983> in 2020 made window.screen return the frame size in fullscreen, for potential developer misuse of screen sizes for page layout in tab-capture fullscreen. That workaround did not resolve any known defects, and causes unexpected Blink-specific behavior: - screen sizes animate as windows enter/exit fullscreen - screen sizes shrink when devtools or certain OS accessibility tools are docked in fullscreen - screen sizes change in tab-capture fullscreen, and as that tab is made foreground or background The change <https://chromium-review.googlesource.com/c/chromium/src/+/4422205> enables FullscreenScreenSizeMatchesDisplay <https://source.chromium.org/chromium/chromium/src/+/main:third_party/blink/renderer/platform/runtime_enabled_features.json5;drc=591477297037b6ea996faf074d103c4140045a04;l=1789-1795?q=FullscreenScreenSizeMatchesDisplay> by default, reverting those behaviors. Blink component Blink>Screen <https://bugs.chromium.org/p/chromium/issues/list?q=component:Blink%3EScreen> TAG review Not planned. Risks Any impact is constrained to limited circumstances (e.g. tab-capture or docked-devtools fullscreen), and this change restores parity with other browsers, but it is unclear to what extent sites might incorrectly rely on window.screen dimensions for fullscreen page layout. Manual inspection found a minor effect <https://crbug.com/1367416#c8> on a video player when its fullscreen frame was reduced to minimum dimensions. The feature flag can be used to halt rollout, if significant issues arise. Gecko & WebKit: No signal. This increases parity with Firefox and Safari, but only Blink supports tab-capture. Web developers: Positive. Bug reports and partner interactions have been supportive of this change Will this feature be supported on all six Blink platforms (Windows, Mac, Linux, Chrome OS, Android, and Android WebView)? Yes Is this feature fully tested by web-platform-tests <https://chromium.googlesource.com/chromium/src/+/main/docs/testing/web_platform_tests.md> ? Mostly - https://wpt.live/fullscreen/api/element-request-fullscreen-screen-size.https.html (WPTs cannot open and dock devtools or accessibility tools at the moment) Flag name FullscreenScreenSizeMatchesDisplay Requires code in //chrome? False Tracking bug https://bugs.chromium.org/p/chromium/issues/detail?id=1367416 Estimated milestones Stable on M114 -- You received this message because you are subscribed to the Google Groups "blink-dev" group. To unsubscribe from this group and stop receiving emails from it, send an email to blink-dev+unsubscr...@chromium.org. To view this discussion on the web visit https://groups.google.com/a/chromium.org/d/msgid/blink-dev/CAEsbcpXVEyL9rr9X-DWpLffMBgvEUeCzX%3DdDieUWeXKi76xV3w%40mail.gmail.com.