forked from mykmelez/gecko
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Bug 1778517 [wpt PR 34722] - Update the pop-up implementation to matc…
…h hint/auto resolutions, a=testonly Automatic update from web-platform-tests Update the pop-up implementation to match hint/auto resolutions See the set of behaviors described here: openui/open-ui#525 (comment) which were resolved here: openui/open-ui#525 (comment) This CL implements those changes in behavior, which mostly deal with how popup=auto and popup=hint interact, and some small changes to how `defaultopen` works. Bug: 1307772 Change-Id: I4d280b60e7c341b4d0f97fe82e60134ff4a6e1fa Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/3742105 Auto-Submit: Mason Freed <masonf@chromium.org> Reviewed-by: Joey Arhar <jarhar@chromium.org> Commit-Queue: Mason Freed <masonf@chromium.org> Cr-Commit-Position: refs/heads/main@{#1021327} -- wpt-commits: f89d90859dfe5872989a8c307fc5e725590392d0 wpt-pr: 34722
- Loading branch information
1 parent
34eb492
commit 352b298
Showing
7 changed files
with
256 additions
and
108 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
20 changes: 20 additions & 0 deletions
20
testing/web-platform/tests/html/semantics/popups/popup-defaultopen-hints.tentative.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
<!DOCTYPE html> | ||
<meta charset="utf-8"> | ||
<link rel=author href="mailto:masonf@chromium.org"> | ||
<link rel=help href="https://open-ui.org/components/popup.research.explainer"> | ||
<script src="/resources/testharness.js"></script> | ||
<script src="/resources/testharnessreport.js"></script> | ||
<script src="resources/popup-utils.js"></script> | ||
|
||
<div popup=hint defaultopen>This is a popup=hint with defaultopen, which should NOT be open upon load</div> | ||
|
||
<script> | ||
promise_test(async () => { | ||
await waitForRender(); | ||
await waitForRender(); | ||
const popUp = document.querySelector('[popup]'); | ||
assert_false(popUp.matches(':top-layer'),'defaultopen does not apply to hint pop-ups'); | ||
assert_true(popUp.hasAttribute('defaultopen'),'attribute should still be present'); | ||
assert_true(popUp.defaultOpen,'defaultopen should be present/true, even if not opened'); | ||
}, "The defaultopen attribute should not apply to popup=hint"); | ||
</script> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.