Open this example in the interactive library
Source code
<style>
.demo:has(input:checked) span {
text-decoration: line-through;
opacity: 0.65;
}
</style>
<label class="demo"
><input type="checkbox" /> <span>Send the proof</span></label
>