ript src="support/selections.js"></script>
  <link rel="stylesheet" href="support/highlights.css">
  <script src="/common/reftest-wait.js"></script>
  <style>
    :root {
      --bg: red;
    }
    main::selection {
      background-color: var(--bg, red);
    }
  </style>
  <body onload="runTest()">
    <p>Test passes if the text below has green background.</p>
    <main class="highlight_reftest">
      <p id="selected">quick</p>
    </main>
    <script>
      function runTest() {
        selectNodeContents