Source code
Revision control
Copy as Markdown
Other Tools
<!doctype html>
<meta charset="utf-8">
<title>CSS Pseudo-Elements Test: selected highlight highlight painting - reference</title>
<link rel="author" name="Stephen Chenney" href="mailto:schenney@igalia.com">
<style>
div {
background-color: lightblue;
color: green;
width: fit-content;
}
</style>
<div id="content">When selected, the highlight color should remain.</div>