wpt / css / css-overflow / scroll-markers / scroll-buttons-disabled-vertical-ltr.html

Status: FAIL | Duration: 10ms | Subtests: 0/1 | Open test on wpt.live | Open ref on wpt.live | wpt.fyi

/css/css-overflow/scroll-markers/scroll-buttons-disabled-vertical-ltr.html

<!doctype html>
<title>CSS Test: ::scroll-button(inline-end) supports :disabled with vertical-ltr writing mode</title>
<link rel="help" href="https://drafts.csswg.org/css-overflow-5/#scroll-buttons">
<link rel="match" href="scroll-buttons-disabled-vertical-ltr-ref.html">
<style>
  * {
    margin: 0;
    padding: 0;
  }

  #scroller {
    width: 600px;
    height: 300px;
    overflow: auto;
    scroll-marker-group: after;
    white-space: nowrap;
    writing-mode: vertical-lr;
  }

  #scroller div {
    background: green;
    display: inline-block;
    width: 600px;
    height: 270px;
  }

  #scroller::scroll-marker-group {
    border: 3px solid black;
    padding: 5px;
    display: flex;
    height: 20px;
    width: 40px;
  }

  #scroller::scroll-button(inline-end) {
    content: ">";
    background: blue;
    display: flex;
    height: 20px;
    width: 20px;
  }

  #scroller::scroll-button(inline-end):disabled {
    background: gray;
  }

  #scroller div::scroll-marker {
    content: "";
    width: 10px;
    height: 10px;
    background-color: blue;
    border-radius: 100%;
    display: inline-block;
  }
</style>
<div id="scroller">
  <div></div>
  <div></div>
</div>
<script>
  scroller.scrollTop = 610;
</script>

/css/css-overflow/scroll-markers/scroll-buttons-disabled-vertical-ltr-ref.html

<!doctype html>
<title>CSS Test Reference: ::scroll-button(inline-end) supports :disabled with vertical-rtl writing mode</title>
<style>
  * {
    margin: 0;
  }

  #scroller {
    width: 600px;
    height: 300px;
    overflow: auto;
    scroll-marker-group: after;
    white-space: nowrap;
    writing-mode: vertical-lr;
  }

  #scroller div {
    background: green;
    display: inline-block;
    width: 600px;
    height: 270px;
  }

  #scroll-marker-group {
    border: 3px solid black;
    padding: 5px;
    display: flex;
    height: 20px;
    width: 40px;
    writing-mode: vertical-lr;
  }

  #scroll-button-inline-end {
    background: gray;
    display: flex;
    height: 20px;
    width: 20px;
    writing-mode: vertical-lr;
  }

  .scroll-marker {
    width: 10px;
    height: 10px;
    background-color: blue;
    border-radius: 100%;
    display: inline-block;
  }
</style>
<div id="scroller">
  <div></div>
  <div></div>
</div>
<button id="scroll-button-inline-end" disabled>></button>
<div id="scroll-marker-group">
  <div class="scroll-marker"></div>
  <div class="scroll-marker"></div>
</div>
<script>
  scroller.scrollTop = 610;
</script>