Skip to content

Fix #245 - Addressing new popover values#247

Open
theIDinside wants to merge 2 commits intowhatwg:mainfrom
theIDinside:fix-245-changed-popover-algorithm
Open

Fix #245 - Addressing new popover values#247
theIDinside wants to merge 2 commits intowhatwg:mainfrom
theIDinside:fix-245-changed-popover-algorithm

Conversation

@theIDinside
Copy link

@theIDinside theIDinside commented Mar 17, 2025

Since the popover attribute got a new value, it's
"find topmost popover ancestor" algorithm changed, and this PR attempts to address this in the Fullscreen API specification.

After discussing with @lukewarlow we came to the conclusion that this is probably the intended change for the Fullscreen API spec.

This addresses #245

  • At least two implementers are interested (and none opposed):
    • Chromium (already implemented like this)
  • Tests are written and can be reviewed and commented upon at:
  • Implementation bugs are filed:
    • Chromium: …
    • Gecko: …
    • WebKit: …
  • MDN issue is filed: …
  • The top of this comment includes a clear commit message to use.

(See WHATWG Working Mode: Changes for more details.)


Preview | Diff

Since the popover attribute got a new value, it's
"find topmost popover ancestor" algorithm changed, and this PR
attempts to address this in the Fullscreen API specification.

After discussing with Luke Warlow we came to the conclusion
that this is probably the intended change for the Fullscreen API spec.

<pre class=link-defaults>
spec:html
type:dfn; text:allowed to use
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

FYI Reviewers: This is to fix the build as it's currently broken (see #246 for a standalone PR to fix that if that's preferable)

spec:html
type:dfn; text:allowed to use
type:dfn; text:showing hint popover list
type:dfn; text:showing auto popover list
Copy link
Member

@lukewarlow lukewarlow Mar 17, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

These aren't currently exported so are manually added here. PR to export them: whatwg/html#11140

Copy link
Author

@theIDinside theIDinside Mar 17, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Probably just remove these from this PR then, right?

Nvm :P

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Once that gets merged yeah you should be able to remove these, useful to keep them for now so the preview works

Copy link
Member

@foolip foolip left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This seems to match Chromium's implementation so I'll go ahead and approve it in the interest of progress / matching reality.

I'll comment on whatwg/html#11140 what we could do differently to use a slightly higher level abstraction.

@foolip
Copy link
Member

foolip commented Dec 18, 2025

I guess a test is needed for this, testing the interaction of popover=hint and going fullscreen? I think such a test would need to get an element into the "open as hint" state and then fullscreen an ancestor element, and finally check if the popover was closed or not.

@annevk
Copy link
Member

annevk commented Jan 15, 2026

A test is needed, but we also can't merge this until the HTML integration situation has an agreed upon solution.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

4 participants