tor-browser

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

hittest-before-pseudo.html (660B)


      1 <!DOCTYPE html>
      2 <link rel="help" href="https://crbug.com/1081789" />
      3 <link rel="stylesheet" type="text/css" href="/fonts/ahem.css" />
      4 <script src="/resources/testharness.js"></script>
      5 <script src="/resources/testharnessreport.js"></script>
      6 <style>
      7 #target::before {
      8  font: 50px/1 Ahem;
      9  display: inline-flex;
     10  content: "X";
     11  border: 2px solid black;
     12  color: green;
     13 }
     14 </style>
     15 <div id=target></div>
     16 <script>
     17 test(function(t) {
     18  const target = document.getElementById('target');
     19  assert_equals(target, document.elementFromPoint(30, 30));
     20 }, 'Hit-testing text within a pseudo-element flex-item should return the flexbox as the hittest result.');
     21 </script>