mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-11-11 05:39:41 +02:00
Automatic update from web-platform-tests Portals: Add support for compositing portals. Bug: 914109 Change-Id: I8ebdfe2352f4a914ca1f2541380c4eafa6a03ab2 Reviewed-on: https://chromium-review.googlesource.com/c/1394985 Reviewed-by: Charlie Reis <creis@chromium.org> Reviewed-by: Jeremy Roman <jbroman@chromium.org> Reviewed-by: Ken Buchanan <kenrb@chromium.org> Commit-Queue: Lucas Gadani <lfg@chromium.org> Cr-Commit-Position: refs/heads/master@{#622737} -- wpt-commits: 5c708fbf402a7fb9a2d99293bcc36bebf32bcaec wpt-pr: 14720
16 lines
534 B
HTML
16 lines
534 B
HTML
<!DOCTYPE html>
|
|
<html class="reftest-wait">
|
|
<title>Portals rendering test</title>
|
|
<link rel="match" href="references/portals-rendering.html">
|
|
<body>
|
|
<portal src="resources/portals-rendering-portal.html" style="background-color: red; width: 100px; height: 100px"></portal>
|
|
<script>
|
|
var bc = new BroadcastChannel('portal');
|
|
bc.onmessage = function(e) {
|
|
window.requestAnimationFrame(function(ts) {
|
|
document.documentElement.classList.remove('reftest-wait');
|
|
});
|
|
bc.close();
|
|
}
|
|
</script>
|
|
</body>
|