 expectedSnapPosition);
      assert_equals(scroller.scrollTop, expectedSnapPosition,
                    'Aligned with card THREE before style change');

      // Snap to card TWO after invalidating card THREE as a snap target.
      card3.style.scrollSnapAlign = 'none center';
      await waitForNextFrame();
      expectedSnapPosition = card2.offsetTop;
      assert_equals(scroller.scrollTop, expectedSnapPosition,
                    'Aligned with card TWO after style change');
    }, 'Resnap when the cur