Skip to content

Attempt to clean up the WPT export of popover=hint from Chromium to WPT#59955

Merged
jonathan-j-lee merged 2 commits into
web-platform-tests:masterfrom
mfreed7:popover_hint
May 21, 2026
Merged

Attempt to clean up the WPT export of popover=hint from Chromium to WPT#59955
jonathan-j-lee merged 2 commits into
web-platform-tests:masterfrom
mfreed7:popover_hint

Conversation

@mfreed7

@mfreed7 mfreed7 commented May 18, 2026

Copy link
Copy Markdown
Contributor

This PR pushes the latest state of popover=hint tests from Chromium (prior to the landing of https://crrev.com/c/7851723, which was a temporary stopgap to unbreak the infra) to WPT.

This one PR should completely replace any PRs that come out of any still-unlanded PRs in this list:

whatwg/html#12345 (comment)

Change-Id: I363b411aa8f6979fbde3766c27afe229703dfc1f
Change-Id: Ibd6af063310585b9044de63a06e36ffd79d011d4
Change-Id: I917bf939614f9811470444e9f13c942e5c63b1b1

This PR pushes the latest state of `popover=hint` tests from Chromium
(prior to the landing of https://crrev.com/c/7851723, which was a
temporary stopgap to unbreak the infra) to WPT.

This one PR should completely replace any PRs that come out of
any still-unlanded PRs in this list:

whatwg/html#12345 (comment)
@mfreed7

mfreed7 commented May 18, 2026

Copy link
Copy Markdown
Contributor Author

@jakearchibald to review

@jakearchibald jakearchibald left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

LGTM! Thanks for getting these together!

Comment thread html/semantics/popovers/popover-events.html
// Note: this should *not* reset "hint stack parent".
assert_true(p34.matches(':popover-open'), 'p34 should remain open');
assert_false(p35.matches(':popover-open'), 'p35 should be light dismissed');
assert_true(p36.matches(':popover-open'), 'p36 should remain open, because its ancestor p34 is still open');

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Suggested change
assert_true(p36.matches(':popover-open'), 'p36 should remain open, because its ancestor p34 is still open');
assert_true(p36.matches(':popover-open'), 'p36 should remain open, because it was clicked');

It isn't left open just because its ancestor is open. Otherwise, you could make the same case for p35 being open.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

I updated the descriptions of this and the one before it. PTAL.

@jakearchibald jakearchibald left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

LGTM

@jgraham jgraham left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

I'm going to approve on behalf of Interop; I believe the changes here have buy in from all vendors.

@jonathan-j-lee jonathan-j-lee merged commit 3dbd6f9 into web-platform-tests:master May 21, 2026
29 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants