tor-browser

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

webkit-user-modify-02.html (1087B)


      1 <!DOCTYPE html>
      2 <meta charset="utf-8">
      3 <title>-webkit-user-modify should be unsupported in contenteditable</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 <div id="contentEditableTrue" contenteditable="true"></div>
      8 <div id="contentEditablePlainText" contenteditable="plaintext-only"></div>
      9 <script>
     10    test(function() {
     11        const contentEditableTrue = document.getElementById('contentEditableTrue');
     12        assert_equals(getComputedStyle(contentEditableTrue).getPropertyValue('-webkit-user-modify'), '');
     13    }, 'contenteditable="true" doesn\'t use unsupported -webkit-user-modify property');
     14 
     15    test(function() {
     16        const contentEditablePlainText = document.getElementById('contentEditablePlainText');
     17        assert_equals(getComputedStyle(contentEditablePlainText).getPropertyValue('-webkit-user-modify'), '');
     18    }, 'contenteditable="plaintext-only" doesn\'t use unsupported -webkit-user-modify property');
     19 </script>