Skip to content

Commit

Permalink
Make ::backdrop stay in top layer while animating out
Browse files Browse the repository at this point in the history
This patch adds a new internal pseudo class which matches popovers while
they are still in the top layer after they have been closed in order to
also make the corresponding ::backdrop stay in the top layer.

This is based on futhark's patch:
https://chromium-review.googlesource.com/c/chromium/src/+/4554016

Fixed: 1449145
Change-Id: I8e4831e960c5d18fb077f023c119fd0e678541df
  • Loading branch information
josepharhar authored and chromium-wpt-export-bot committed Jun 3, 2023
1 parent 5a8d833 commit 5c46a62
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions css/css-position/overlay/overlay-transition-backdrop.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
3<!DOCTYPE html>
<title>CSS Position Test: overlay transition with ::backdrop</title>
<link rel="help" href="https://drafts.csswg.org/css-position-4/#overlay">
<link rel="match" href="green-ref.html">
<style>
[popover] {
display: block;
visibility: hidden;
transition: overlay 60s step-end;
}
[popover]::backdrop {
background-color: green;
}
</style>
<div popover id="foo"></div>
<script>
foo.showPopover();
foo.hidePopover();
</script>

0 comments on commit 5c46a62

Please sign in to comment.