tor-browser

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

user-modify-01.html (754B)


      1 <!DOCTYPE html>
      2 <meta charset="utf-8">
      3 <title>user-modify should be unsupported in author origin</title>
      4 <link rel="help" href="https://developer.mozilla.org/en-US/docs/Web/CSS/user-modify">
      5 <script src="/resources/testharness.js"></script>
      6 <script src="/resources/testharnessreport.js"></script>
      7 <style>
      8 #modified {
      9    user-modify: read-write;
     10 }
     11 </style>
     12 <div id="inherited"></div>
     13 <div id="modified"></div>
     14 <script>
     15    test(function() {
     16        for (const el of [inherited, modified]) {
     17            assert_equals(el.style.userModify, undefined);
     18            assert_equals(el.style.UserModify, undefined);
     19            assert_equals(getComputedStyle(el).getPropertyValue('user-modify'), '');
     20        }
     21    }, 'user-modify is not supported');
     22 </script>