tor-browser

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

outline-auto-dynamic-change.html (914B)


      1 <!doctype html>
      2 <html class="reftest-wait">
      3 <meta charset="utf-8">
      4 <link rel="author" href="mailto:emilio@crisal.io" title="Emilio Cobos Álvarez">
      5 <link rel="author" href="https://mozilla.org" title="Mozilla">
      6 <link rel="help" href="https://drafts.csswg.org/css-ui/#outline-style">
      7 <link rel="help" href="https://bugzilla.mozilla.org/show_bug.cgi?id=1759749">
      8 <link rel="match" href="outline-auto-dynamic-change-ref.html">
      9 <title>Dynamic change to outline-style: auto works even if effective outline-width is zero</title>
     10 <style>
     11 div {
     12  position: absolute;
     13  top: 10px;
     14  left: 10px;
     15  width: 100px;
     16  height: 100px;
     17  outline-width: 0;
     18  outline-offset: 5px;
     19  outline-color: black;
     20  outline-style: none;
     21 }
     22 </style>
     23 <div></div>
     24 <script>
     25 document.addEventListener("TestRendered", function() {
     26  document.querySelector("div").style.outlineStyle = "auto";
     27  document.documentElement.className = "";
     28 });
     29 </script>