Skip to content
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

Fullscreen reordering behavior #27303

Open
josepharhar opened this issue Jun 13, 2023 · 2 comments
Open

Fullscreen reordering behavior #27303

josepharhar opened this issue Jun 13, 2023 · 2 comments
Labels
Content:WebAPI Web API docs help wanted If you know something about this topic, we would love your help!

Comments

@josepharhar
Copy link

MDN URL

https://developer.mozilla.org/en-US/docs/Web/API/Fullscreen_API

What specific section or headline is this issue about?

No response

What information was incorrect, unhelpful, or incomplete?

In this HTML PR, the behavior of requesting fullscreen on multiple elements was defined. This test shows how it should work: if you call requestFullscreen on an element A, and then call requestFullscreen on an element B, they should both be in the top layer, and B should be on top. If you then call requestFullscreen on element A again, then A should now be on top.

What did you expect to see?

There could be a section explaining this top layer stacking/reordering behavior

Do you have any supporting links, references, or citations?

whatwg/html#9093
web-platform-tests/wpt#39828

Do you have anything more you want to share?

No response

@josepharhar josepharhar added the needs triage Triage needed by staff and/or partners. Automatically applied when an issue is opened. label Jun 13, 2023
@github-actions github-actions bot added the Content:WebAPI Web API docs label Jun 13, 2023
@foolip
Copy link
Contributor

foolip commented Jun 14, 2023

FWIW, I think a like requesting in A-B-A order is a bit too esoteric to document, but it would be useful to document that nested fullscreen is a thing, and that it's possible to request fullscreen of different elements in any order. Possibly there should be a note that some browsers require the 2nd fullscreen element to be a descendant of the 1st, so that it's not possible to request fullscreen of a sibling (or ancestor) element of the current fullscreen element.

@Josh-Cena Josh-Cena added help wanted If you know something about this topic, we would love your help! and removed needs triage Triage needed by staff and/or partners. Automatically applied when an issue is opened. labels Jun 26, 2023
@Josh-Cena
Copy link
Member

Seems like both Chrome and Firefox already implement the new behavior, but Safari does not; maybe when Safari fixes this, we would also need a BCD note.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Content:WebAPI Web API docs help wanted If you know something about this topic, we would love your help!
Projects
None yet
Development

No branches or pull requests

3 participants