wpt / css / css-position / overlay / overlay-transition-backdrop-entry.html

Status: PASS | Duration: 5ms | Subtests: 1/1 | Open test on wpt.live | Open ref on wpt.live | wpt.fyi

/css/css-position/overlay/overlay-transition-backdrop-entry.html

<!DOCTYPE html>
<title>CSS Position Test: overlay transition with ::backdrop during entry animation</title>
<link rel="help" href="https://drafts.csswg.org/css-position-4/#overlay">
<link rel="match" href="green-ref.html">
<link rel="author" href="mailto:jarhar@chromium.org">
<style>
  body {
    background-color: green;
  }
  [popover] {
    display: block;
    visibility: hidden;
    transition-delay: 2s;
    transition-property: overlay;
    transition-duration: 2s;
    transition-behavior: allow-discrete;
  }
  [popover]::backdrop {
    background-color: blue;
  }
</style>
<div popover id="foo"></div>
<script>
  foo.offsetTop;
  foo.showPopover();
</script>

/css/css-position/overlay/green-ref.html

<!DOCTYPE html>
<title>CSS Test Reference</title>
<body style="background-color:green"></body>