`text-shadow` is drawn above `::selection`'s background colour
Author: webbedspaceCreated Sep 29, 2026Updated Sep 29, 2026
LabelsC-untriaged
Describe the bug: ↓
To Reproduce:
<!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
Others
Platform: Win 10
Source: servo/servo