;
  background-color: blue;
  scroll-snap-align: start;
}
</style>

<div id="scroller">
  <div style="width: 2000px; height: 2000px;"></div>
  <div id="target"></div>
  <div id="another-target"></div>
</div>

<script>
test(() => {
  target.style.scrollSnapAlign = "start";
  target.style.scrollMargin = "100px";
  target.style.left = "300px";
  target.style.top = "300px";

  scroller.scrollTo(0, 0);
  // `target position (300px, 300px)` - `margin (100px, 100px)`.
  assert_equals(scroller.scrollLeft, 200);
  a