-
Notifications
You must be signed in to change notification settings - Fork 679
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[mediaqueries-5] Add display-mode for document picture-in-picture #9260
Comments
@tabatkins What would be the next steps for this proposal? |
@tabatkins (gentle ping) Is there anything I can to do to help move this proposal forward? |
What is the latest on this @tabatkins ? |
The CSS Working Group just discussed
The full IRC log of that discussion<TabAtkins> https://github.com/WICG/document-picture-in-picture<Frances> Tab: There is a spec for the picture-in-picture feature. For the document, should it be exposed as a display mode to format differently? For how browser is wrapping you. <emilio> q+ <Frances> PROPOSAL: Add display-mode for document picture-in-picture <florian> q- <astearns> ack Frances <astearns> ack florian <astearns> ack emilio <Frances> Emilio: Alot of the preexisting values for this would be reasonable. How do the values intersect such as in full screen? <Frances> Tab: Mutually exclusive, if not right, we can figure it out. <Frances> Emilio: Not opposed. Probably file an issue in a variety of cases. <Frances> Tab: Reviewed by people, about 60 issues. <Frances> Alan: A couple avenues such as specifying what's there in the wiki-spec and take on the issues or in the repository <Frances> Tab: All picture-in-picture api, displayed as pip or not? <Frances> Alan: Any other comments on taking on a picture-in-picture media query? <Frances> PROPOSAL: Adopt picture-in-picture media query <Frances> Alan: Any objections? <Frances> RESOLVED: Adopt picture-in-picture media query |
It's not clear to me what are the next steps. Shall we update the document picture-in-picture spec with a new section dedicated to the display-mode "picture-in-picture" media query feature OR shall I start a media-query spec PR to add the display-mode "picture-in-picture" media query feature to the list in https://www.w3.org/TR/mediaqueries-5/#display-mode? |
Sorry about that, we should add it to the existing MQ5 list. |
@tabatkins Shall I start a media-query spec PR then? |
FYI I've started #9920. @tabatkins Please review. |
@tabatkins What are the next steps? Shall I close this issue? |
Shall we consider Document Picture-in-Picture as a type of "display mode"?
For reference, display modes are used with e.g. PWAs, which can have display modes of e.g. standalone or fullscreen, reflecting their window state. In a similar way, Picture-in-Picture can be considered a (more temporary) type of display mode.
https://www.w3.org/TR/mediaqueries-5/#display-mode defines "display mode" as follows:
This seems to match with how PiP windows behave and what they do. A display-mode media feature for picture-in-picture would then allow us to write specific CSS rules that are only applied when (part of the) the application is shown in picture-in-picture mode. For example:
In this example, we're adding a modification that removes margins on the
<body>
element, and reduces the font-size of titles when in PiP mode — this could be done in an attempt to better fit the content in question inside the PiP window, while the rest of the CSS is just applied as normal.Originally posted in WICG/document-picture-in-picture#87
Note that the Picture-in-Picture display mode is definitely on par with (and mutually incompatible with) a document being displayed fullscreen, etc.
The text was updated successfully, but these errors were encountered: