在输入类型范围的 track 和 thumb 之间定位伪元素

Position pseudoelement between track and thumb of input type range

我需要放置一个 z 索引低于输入类型范围的拇指但高于它的轨道的伪元素,我得到以下信息:

html:

<div class="range">
  <input type="range" name="" class="progress" value="0" max="100" min="0" />
</div>


.range{
    white-space: nowrap;
    position: relative;
    margin: 0 auto;
    width: 50vw;
}

.range::before{
   content: '';
  display: inline-block;
  position: absolute;
  top: 2px;
   width: 13px;
   height: 13px;
   -moz-border-radius: 13px;
   -webkit-border-radius: 13px;
   border-radius: 13px;
   border: 2px solid #FFE000;
   background-color: #242526;
   z-index: 50;
}

input[type=range] {
  position: absolute;
  -webkit-appearance: none;
  margin: 10px 0;
  width: calc(100% - 15px);
  display: inline-block;
  vertical-align: middle;
  padding: 0;
  border: none;
  z-index: 100;
}


input[type=range]::-webkit-slider-runnable-track {
  width: 100%;
  height: 3px;
  cursor: pointer;
  animate: 0.2s;
  box-shadow: 0px 0px 0px #000000;
  background: #FFE000;
  border-radius: 7px;
  border: 0px solid #FFE000;
  z-index: 0;
}

z-index 适用于整个伪元素和整个范围,但我还没有设法将其置于两者之间。这可能吗?

这是一个有效的 jsfiddle

我想是这样的:https://jsfiddle.net/cn5va061/2

更改了 before 元素上的 Z-index 并为上部 z-index

提供了滑块拇指相对定位