-
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 1867479 [wpt PR 43445] - Test custom properties with fullscreen's…
… ::backdrop, a=testonly Automatic update from web-platform-tests Test custom properties with fullscreen's ::backdrop (#43445) Fixes whatwg/fullscreen#124. -- wpt-commits: 6ee66f924120d02ae697a5c4c2999f27dd5ad5c0 wpt-pr: 43445 UltraBlame original commit: 5ef50e3d812feaa82c780fd762360b5045d45353
- Loading branch information
Showing
3 changed files
with
28 additions
and
1 deletion.
There are no files selected for viewing
File renamed without changes.
2 changes: 1 addition & 1 deletion
2
testing/web-platform/tests/fullscreen/rendering/backdrop-iframe.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
27 changes: 27 additions & 0 deletions
27
testing/web-platform/tests/fullscreen/rendering/backdrop-inherit.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,27 @@ | ||
<!DOCTYPE html> | ||
<html class=reftest-wait> | ||
<title>::backdrop inherits style from the fullscreen element</title> | ||
<link rel=match href="backdrop-green-ref.html"> | ||
<link rel=help href="https://github.com/whatwg/fullscreen/issues/124"> | ||
<script src="/resources/testdriver.js"></script> | ||
<script src="/resources/testdriver-vendor.js"></script> | ||
<style> | ||
body { | ||
--bg: red; | ||
} | ||
div { | ||
--bg: green; | ||
} | ||
div::backdrop { | ||
background: var(--bg); | ||
} | ||
</style> | ||
<div></div> | ||
<script> | ||
document.addEventListener('fullscreenchange', () => { | ||
document.documentElement.classList.remove('reftest-wait'); | ||
}); | ||
test_driver.bless('fullscreen', () => { | ||
document.querySelector('div').requestFullscreen(); | ||
}); | ||
</script> |