tor-browser

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

container-focus-ref.html (501B)


      1 <!doctype HTML>
      2 <html>
      3 <meta charset="utf8">
      4 <title>CSS Content Visibility: container (reference)</title>
      5 <link rel="author" title="Vladimir Levin" href="mailto:vmpstr@chromium.org">
      6 <link rel="help" href="https://drafts.csswg.org/css-contain/#content-visibility">
      7 
      8 <style>
      9 #container {
     10  width: 150px;
     11  height: 150px;
     12  background: lightblue;
     13 }
     14 </style>
     15 
     16 <p>Test passes if the light blue box below has focus.
     17 <div id=container tabindex=0></div>
     18 
     19 <script>
     20 onload = () => container.focus();
     21 </script>