<!DOCTYPE html>
<title>Node.moveBefore should trigger CSS transition state (left) if needed</title>
<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>

<body>
  <section id="old-parent">
    <div id="item"></div>
  </section>
  <section id="new-parent">
  </section>
  <style>
    #item {
      width: 100px;
      height: 100px;
      background: green;
      transition: left 10s steps(1, jump-both);
      position: absolute;
      left: 0;
    }

    #n