-
Notifications
You must be signed in to change notification settings - Fork 6.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Viewport Segments API] Fix fullscreen video playback when the device…
… is folded When the device is folded (and for PCs the keyboard is detached), the fullscreen video is laid across the fold which is not a great user experience. This patch fixes the issue by putting the video in one segment only. fullscreen.css is a user agent style sheet and do not support CSS environment variables and media queries. CSS environment variables are correctly parsed but not resolved. In order to make the patch simple only the Viewport Segments variables will be resolved. In regards to MQs we now enable parsing them and resolving them the first time. However in this patch the MQs will only be re-evaluated when the Viewport Segments changes. This patch will only impact non-foldable devices when parsing the fullscreen.css as we now parse MQs which we didn't before, but said MQs will be evaluated once (to none) and never re-evaluated. Bug: 1487699 Change-Id: I43adea152a273dce79dbecafff9327f11883e3ed Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4903622 Reviewed-by: Rune Lillesveen <futhark@chromium.org> Reviewed-by: Jonathan Ross <jonross@chromium.org> Commit-Queue: Alexis Menard <alexis.menard@intel.com> Cr-Commit-Position: refs/heads/main@{#1209449}
- Loading branch information
Showing
11 changed files
with
173 additions
and
18 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters