-
Notifications
You must be signed in to change notification settings - Fork 376
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
Shadow DOM and the Fullscreen API #180
Comments
What are the questions that need to be asked here? Chrome already seems to support setting a shadowy element to fullscreen as long as there's no fullscreen element already. Here's a use case I have, maybe it will help with figuring this out. I have a shadow root on a {{}} element which could contain a HTML5 video or a YouTube embed (iframe), and a set of custom controls. Both the controls and the video are wrapped in another element. If a user clicks the "go fullscreen" button on those controls, I want the wrapping element to go full screen. Setting the wrapping element to full screen seems to make more sense than the custom element because external styles won't apply to the wrapping element inside the shadow tree, so we can (more or less) guarantee that it will look right.
|
Yeah, @annevk's proposal makes sense to me. |
FWIW, fullscreen inside a shadow tree doesn't currently work correctly in Chrome, because it still has the |
|
There should be no difference between open and closed since there's no reason here to penetrate the boundary. |
Great, nice and simple! |
Let's merge this into #192 |
I'd prefer to keep this separate since it affects a different standard. Hope that's okay. |
Ops. I did not realize that fullscreen APIs is here: https://fullscreen.spec.whatwg.org/ |
Let me try to resolve this. Do we agree on the following? :
or (4) When an element in a shadow tree becomes fullscreen, As far as I understand the only contentious point is that If there is any other concern, please speak up. |
I think We also need to define how the pseudo-classes match. |
As For
we have to decide whether shadow host's fullscreen flag is set when its descendant is fullscreen. Another point: |
Well, we DO want |
It sounds that the situation is very similar to Regarding |
For |
Thanks for the comments! So roughly,
Probably we can consider firing those events to |
I think that's a good outcome, thank you. Are you interested in working on the specification patch as well? |
@TakayoshiKochi Is there any update on this issue? I am now checking the status of all Shadow DOM v1 spec issues. |
I'm about to start updates on spec for this (as well as pointerLock for #192). |
Spec discussion at WICG/webcomponents#180. The rough consensus was: WICG/webcomponents#180 (comment) This resolves whatwg#42
Spec discussion at WICG/webcomponents#180. The rough consensus was: WICG/webcomponents#180 (comment) This resolves whatwg#42
Spec discussion at WICG/webcomponents#180. The rough consensus was: WICG/webcomponents#180 (comment) This resolves whatwg#42
Spec discussion at WICG/webcomponents#180. The rough consensus was: WICG/webcomponents#180 (comment) This resolves whatwg#42
Spec discussion at WICG/webcomponents#180. The rough consensus was: WICG/webcomponents#180 (comment) This resolves whatwg#42
Spec discussion at WICG/webcomponents#180. The rough consensus was: WICG/webcomponents#180 (comment) This resolves whatwg#42
Spec discussion at WICG/webcomponents#180. The rough consensus was: WICG/webcomponents#180 (comment) This resolves whatwg#42
Spec discussion at WICG/webcomponents#180. The rough consensus was: WICG/webcomponents#180 (comment) This resolves whatwg#42
Spec discussion at WICG/webcomponents#180. The rough consensus was: WICG/webcomponents#180 (comment) This resolves whatwg#42
Spec discussion at WICG/webcomponents#180. The rough consensus was: WICG/webcomponents#180 (comment) This resolves whatwg#42
Spec discussion at WICG/webcomponents#180. The rough consensus was: WICG/webcomponents#180 (comment) This resolves whatwg#42
Spec discussion at WICG/webcomponents#180. The rough consensus was: WICG/webcomponents#180 (comment) This resolves whatwg#42
Spec discussion at WICG/webcomponents#180. The rough consensus was: WICG/webcomponents#180 (comment) This resolves whatwg#42
Migrated from: https://www.w3.org/Bugs/Public/show_bug.cgi?id=27379
See also https://www.w3.org/Bugs/Public/show_bug.cgi?id=26934#c2
The text was updated successfully, but these errors were encountered: