-
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] Move the definition of display-mode back to APPMANIFEST. Closes #7306. #7307
Conversation
The Manifest spec is aligned and that corresponding PR can be merged at the same time. |
It would be good if we then linked the display-mode values back to the Web Manifest spec (so people can easily look up what each one means). We've updated the other PR to export them. |
Good idea. Is this too verbose? (Explicitly listing each one and linking it to the manifest) This way there is a separate explicit definition of "the standalone display-mode MQ feature" (defined in CSS), distinct from the definition of "the standalone display mode" (defined in Manifest). Also, I can't really verify that this linking will work... right now when I build it, it links to the CSS spec, but I assume once both of these PRs land, those links will go back to the Manifest spec. |
@frivoal for review, please when you get a chance. |
In |
I'm not quite clear what you're proposing? Are you saying I should revert the last commit (disagree with Marcos)? Or some middle ground. FWIW the intention here is that we're defining two different things: the "display modes" which are the modes you can request in the Manifest, and the " |
mediaqueries-5/Overview.bs
Outdated
This media feature reflects the actual display mode that is being used on the current browsing | ||
context, not necessarily the one that was requested in the web app manifest (if any). | ||
|
||
On normal web pages, 'display-mode' will have a value of ''browser''. Only pages appearing in the |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm not sure we should say anything about "normal web pages" (unless that's actually a thing?).
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah I wasn't really sure how to express this, but I am trying to simply say (since we're in the context of CSS and not the manifest) that "normally" (on the "drive-by web") this will be "browser".
I've reworded it and put it in a note. The non-normative context I think allows me to talk about "web browsers" as a special class of user agent, which I wouldn't normally talk about in normative text.
Sorry, I should have been more detailed. What I was saying was that I'm not sure the values are as necessary in the CSS spec as they should be bound to the values in the Manifest, right? For instance, when |
So what you're saying is that we shouldn't duplicate the list of possible values, and instead just say "it can be any value from the "display mode" list in the manifest"? I think avoiding that duplication would be ideal, but my feeling from reading the CSSMQ spec is that this is formally defining the CSS syntax and we can't just delete the blue box and put in a hand-wave "see the list from the manifest". So we do need to duplicate the list of possible values. I think it's OK: adding new display modes will be pretty rare (we'll add maybe 2 in the next couple of years) so we will just be sure to add an entry here when we do. |
053a0fe
to
609216b
Compare
609216b
to
fe67167
Compare
Hi CSS folks, including @frivoal . I have finally gotten around to updating this PR with the changes discussed around this time last year. Apologies for the slow turnaround on this - this was disrupted at the start of this year and been on my backburner since then. I believe my edits have captured the essence of what was requested in the CSSWG meeting from 17 Nov, 2022. A brief recap:
So for today's update to the PR, I have:
There are two main aspects that I wish to keep in the Manifest spec:
Please take a look and let me know if this is going to be discussed at a CSSWG meeting. Cheers. |
Hi @frivoal . Friendly ping, would you be able to review the revised pull request or re-raise it at a WG meeting, whatever the process may be? I believe the last update satisfied your feedback. |
. This text was moved out of the Manifest spec into CSS mediaqueries-5 in w3c#6343, along with the display-mode media feature. The actual definition of display mode belongs in Manifest, while the display-mode media feature remains here. Added some more text explaining how the display-mode media feature works given that this is in a separate spec to where web apps are defined.
- No longer solely based on manifest display modes, since browser and fullscreen are meaningful independent of manifest. - Added a solid definition for browser and fullscreen rather than relying on that of the manifest spec. - Added an example.
Oh no, I just saw the merge conflict. #9920 has added a new value to CSS I will take another pass at this now. |
Note that "web application" is incorrect as this is not a web app display mode. This changes the text to "browsing context" to be consistent with the other changes made in this PR.
This now accounts for the fact that there are now more than two non-application-context display modes.
6552d10
to
34ae1b6
Compare
Updated. I have reworked things so that we now have a separation between the "display mode" in the manifest (which defines the four display modes) and the values of the "display-mode" MQ (which now has five possible values). The text in this PR is now clear on the fact that This is a bit trickier now that there isn't a 1:1 mapping between "manifest display modes" and "MQ display modes" but I think this text makes sense. I am similarly making small non-normative changes on the Manifest side so that it's clearer. |
Landed this as shown above. |
This text was moved out of the Manifest spec into CSS mediaqueries-5 in
#6343, along with the display-mode media feature. The
actual definition of display mode belongs in Manifest, while the
display-mode media feature remains here.
Added some more text explaining how the display-mode media feature works
given that this is in a separate spec to where web apps are defined.