<!DOCTYPE html>
<meta charset="UTF-8">
<title>CSS Highlight API Test: Painting</title>
<link rel="help" href="https://drafts.csswg.org/css-highlight-api-1/">
<link rel="match" href="custom-highlight-painting-001-ref.html">
<meta name="assert" value="Highlighted elements must be correctly painted and there should be no caching that doesn't take highlight names into account">
<style>
  #affected::highlight(foo) {
    background-color: yellow;
    color: blue;
  }
</style>
<body><span></span><span id="affected