<!doctype html>
<title>CSS Test: ::scroll-button(*) :disabled triggers when snapping prevents further scrolling</title>
<link rel="help" href="https://drafts.csswg.org/css-overflow-5/#scroll-buttons">
<style>
  * {
    margin: 0;
    padding: 0;
  }

  .scroller {
    width: 50px;
    height: 50px;
    overflow: hidden;
    margin: 20px;
    box-sizing: border-box;
  }

  .horizontal {
    white-space: nowrap;
    scroll-snap-type: x mandatory;
    padding: 0 20px;
  }
  .vertical {
    white-space: nowrap;