wpt / css / css-transitions / allow-discrete-auto-inset.html

Status: FAIL | Duration: 12ms | Subtests: 0/1 | Open test on wpt.live | Open ref on wpt.live | wpt.fyi

/css/css-transitions/allow-discrete-auto-inset.html

<!DOCTYPE html>
<title>CSS Transitions Test: discrete transition for auto inset</title>
<link rel="help" href="https://drafts.csswg.org/css-transitions-2/#transition-behavior-property">
<link rel="match" href="/css/reference/ref-filled-green-100px-square-only.html">
<style>
  #container {
    position: relative;
    width: 100px;
    height: 100px;
    background: green;
  }
  #abs {
    position: absolute;
    transition: top 1000s step-start allow-discrete;
    inset: 0px;
    background: red;
  }
  #abs.auto {
    top: auto;
  }
</style>
<p>Test passes if there is a filled green square.</p>
<div id="container">
  <div id="abs"></div>
</div>
<script>
  abs.offsetTop;
  abs.className = "auto";
</script>

/css/reference/ref-filled-green-100px-square-only.html

<!DOCTYPE html>
<link rel="author" title="Morten Stenshorne" href="mstensho@chromium.org">
<p>Test passes if there is a filled green square.</p>
<div style="width:100px; height:100px; background:green;"></div>