tor-browser

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

placeholder-opacity-default.tentative.html (780B)


      1 <!DOCTYPE html>
      2 <html>
      3  <head>
      4    <meta charset="utf-8" />
      5    <title>Placeholder Test: opacity default value</title>
      6    <link rel="author" title="Karl Dubost" href="mailto:kdubost@mozilla.com"
      7    />
      8    <link rel="help" href="https://drafts.csswg.org/css-pseudo-4/#placeholder-pseudo"
      9    />
     10    <script src="/resources/testharness.js"></script>
     11    <script src="/resources/testharnessreport.js"></script>
     12  </head>
     13  <body>
     14    <input
     15      id="opacity"
     16      placeholder="::placeholder should have default opacity: 1"
     17    />
     18    <script>
     19      test(function () {
     20        var target = document.getElementById("opacity");
     21        assert_equals(getComputedStyle(target, '::placeholder').opacity, "1");
     22      }, "Default opacity value is '1'");
     23    </script>
     24  </body>
     25 </html>