1
0
Fork 0
firefox/testing/web-platform/tests/css/css-highlight-api/painting/custom-highlight-painting-below-selection-ref.html
Daniel Baumann 5e9a113729
Adding upstream version 140.0.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
2025-06-25 09:37:52 +02:00

16 lines
No EOL
377 B
HTML

<!DOCTYPE html>
<meta charset="UTF-8">
<style>
#highlighted {
background: cyan;
color: blue;
}
::selection {
background: blue;
color: cyan;
}
</style>
<body><span id="highlighted">Text should be blue over cyan here and <span id="selected">cyan over blue here</span>.</span>
<script>
getSelection().setBaseAndExtent(selected, 0, selected, 1);
</script>