testing/web-platform/tests/css/css-pseudo/selection-link-001-ref.html
author Florian Quèze <florian@queze.net>
Tue, 08 Jul 2025 20:48:53 +0000 (11 hours ago)
changeset 795809 b01190f141a12f4b506acb1f4476561c4b0f2407
parent 617447 050acbb38bcf95d1501321819e907044f6dae1da
permissions -rw-r--r--
Bug 1960567 - remove the last C++ and scriptable APIs to accumulate data to legacy telemetry histograms, r=chutten. Differential Revision: https://phabricator.services.mozilla.com/D255582
<!DOCTYPE html>
<meta charset="utf-8" />
<title>CSS Pseudo-Elements Test: Reference file</title>
<link rel="author" title="Manuel Rego Casasnovas" href="mailto:rego@igalia.com">
<script src="support/selections.js"></script>
<style>
  .green::selection {
    color: green;
  }
</style>

<p>Test passes if when selecting the content "visited" has a green color and white background, and "unvisited" is selected with the default colors.</p>
<main>
  <span class="green">visited</span>
  <span>unvisited</span>
</main>

<script>selectNodeContents(document.querySelector("main"));</script>