I have come across an interesting moment for myself and would like to figure out how it works.
Here are 2 examples in the sandbox. On one without position: absolute, the opacity is different from where position: absolute is applied. Why does positioning affect the degree of opacity in this case?
.wrapper {
position: relative;
text-align: center;
width: 300px;
}
.text-wrap {
border-bottom: 3px solid #202122FF;
opacity: 0.5;
}
.text {
right: 40%;
bottom: -7px;
position: absolute;
padding: 0 5px;
color: #202122FF;
background-color: white;
}
<div class="wrapper">
<div class="text-wrap">
<span class="text">
Some text
</span>
</div>
</div>

And the same template without position: absolute
.wrapper {
position: relative;
text-align: center;
width: 300px;
}
.text-wrap {
border-bottom: 3px solid #202122FF;
opacity: 0.5;
}
.text {
right: 40%;
bottom: -7px;
/* position: absolute; */
padding: 0 5px;
color: #202122FF;
background-color: white;
}
<div class="wrapper">
<div class="text-wrap">
<span class="text">
Some text
</span>
</div>
</div>
