#48504·servo

`text-shadow` is drawn above `::selection`'s background colour

Author: webbedspaceCreated Sep 29, 2026Updated Sep 29, 2026
LabelsC-untriaged

Describe the bug: ↓

To Reproduce:

xml
<!doctype html>
<style>::selection { background-color: red } p { text-shadow: 0px 0px 15px black; }</style>
<p>What is <span>the name</span> of <span>the fox?</span></p>
<script>
let s = document.getSelection()
s.selectAllChildren(document.body)
</script>

Servo Image Others Image

Platform: Win 10