From 7af6ea39ba1426ec852392cadc1335f45c8f48f0 Mon Sep 17 00:00:00 2001 From: Joey Arhar Date: Mon, 6 May 2024 19:23:17 -0700 Subject: [PATCH] Don't close ancestor popovers when fullscreening Without this change, 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 | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/fullscreen.bs b/fullscreen.bs index a772f2c..ce9ed9f 100644 --- a/fullscreen.bs +++ b/fullscreen.bs @@ -67,7 +67,13 @@ 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. If hideUntil is null, then set hideUntil to element's + node document. + +

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

  5. Set element's fullscreen flag.