tor-browser

The Tor Browser
git clone https://git.dasho.dev/tor-browser.git
Log | Files | Refs | README | LICENSE

highlight-paired-cascade-006.html (1217B)


      1 <!doctype html>
      2 <meta charset="utf-8">
      3 <title>CSS Pseudo-Elements Test: paired cascade: UA default highlight colors are used when highlight pseudo has declared color value of revert</title>
      4 <link rel="author" name="Delan Azabani" href="mailto:dazabani@igalia.com">
      5 <link rel="help" href="https://drafts.csswg.org/css-pseudo-4/#highlight-cascade">
      6 <link rel="match" href="highlight-paired-cascade-006-ref.html">
      7 <meta name="assert" value="This test verifies that setting color to revert on ::selection does not suppress any UA non-initial used value for background-color. Because the revert value rolls back the cascade, it destroys its own existence as a cascaded value, and this is also true under paired cascade.">
      8 <script src="support/selections.js"></script>
      9 <link rel="stylesheet" href="../support/highlights.css">
     10 <style>
     11    main {
     12        font-size: 7em;
     13        margin: 0.5em;
     14    }
     15    main::selection {
     16        /*
     17            Used background-color should be UA default, not initial.
     18        */
     19        color: revert;
     20    }
     21 </style>
     22 <p>Test passes if the text below appears to be highlighted.
     23 <main class="highlight_reftest">quick</main>
     24 <script>selectNodeContents(document.querySelector("main"));</script>