From d853b637deaeb90b781b9c77132ea9beffba4d7b Mon Sep 17 00:00:00 2001 From: Joey Arhar Date: Wed, 31 Jan 2024 07:59:09 -0800 Subject: [PATCH] Don't close ancestor popovers when fullscreening Without this patch, the fullscreening an element inside an open popover will make the fullscreen element display:none. Issue: https://github.com/whatwg/html/issues/9998 Corresponding HTML PR: https://github.com/whatwg/html/pull/10116 --- fullscreen.bs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/fullscreen.bs b/fullscreen.bs index a772f2c..6e9f78f 100644 --- a/fullscreen.bs +++ b/fullscreen.bs @@ -67,7 +67,10 @@ is an ordered set of (string, element) tuples. It is

To fullscreen an element:

    -
  1. Run hide all popovers given element's node document. +

  2. Let hideUntil be the result of running topmost popover ancestor given + element, null, and false. + +

  3. Run hide all popovers until given hideUntil, false, and true.

  4. Set element's fullscreen flag.