testing/web-platform/tests/css/css-overflow/scroll-marker-counters.html
author Florian Quèze <florian@queze.net>
Tue, 08 Jul 2025 20:48:53 +0000 (9 hours ago)
changeset 795809 b01190f141a12f4b506acb1f4476561c4b0f2407
parent 767466 fc23bb2fb4803296946fefd73df1d764b3537ba8
permissions -rw-r--r--
Bug 1960567 - remove the last C++ and scriptable APIs to accumulate data to legacy telemetry histograms, r=chutten. Differential Revision: https://phabricator.services.mozilla.com/D255582
<!DOCTYPE html>
<title>CSS Overflow Test: ::scroll-marker counters</title>
<link rel="match" href="scroll-marker-counters-ref.html">
<link rel="help" href="https://drafts.csswg.org/css-overflow-5/#scroll-marker-pseudo">
<style>
  #scroller {
    overflow: hidden;
    scroll-marker-group: after;
    counter-reset: item;
    height: 100px;
    width: 100px;
  }

  #scroller::scroll-marker-group {
    border: 3px solid black;
    display: flex;
    height: 100px;
    width: 300px;
  }

  .item {
    height: 100px;
    width: 100px;
  }

  .item::scroll-marker {
    content: counter(item);
    counter-increment: item;
    background-color: green;
    border-radius: 50%;
    height: 100px;
    width: 100px;
  }
</style>
<div id="scroller">
  <div class="item">1</div>
  <div class="item">2</div>
  <div class="item">3</div>
</div>