tor-browser

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

use-instance-hover.html (948B)


      1 <!DOCTYPE html>
      2 <html class="reftest-wait">
      3 <title>SVG Test: :hover effect on &lt;use&gt; element instance</title>
      4 <link rel="help" href="https://svgwg.org/svg2-draft/struct.html#UseStyleInheritance">
      5 <link rel="match" href="/svg/linking/reftests/use-descendant-combinator-ref.html">
      6 <script src="/common/reftest-wait.js"></script>
      7 <script src="/common/rendering-utils.js"></script>
      8 <script src="/resources/testdriver.js"></script>
      9 <script src="/resources/testdriver-actions.js"></script>
     10 <script src="/resources/testdriver-vendor.js"></script>
     11 <style>
     12  rect {
     13    fill: red;
     14    width: 100px;
     15    height: 100px;
     16  }
     17  rect:hover { fill: green; }
     18 </style>
     19 <p>You should see a green square, and no red.</p>
     20 <svg>
     21  <defs>
     22    <rect id="r"></rect>
     23  </defs>
     24  <use href="#r"></use>
     25 </svg>
     26 <script type="module">
     27  await waitForAtLeastOneFrame();
     28  await new test_driver.Actions()
     29    .pointerMove(50, 100)
     30    .send();
     31  takeScreenshot();
     32 </script>