Source code
Revision control
Copy as Markdown
Other Tools
Test Info:
- This WPT test may be referenced by the following Test IDs:
            
- /css/css-ui/historical/moz-user-modify-02.html - WPT Dashboard Interop Dashboard
 
 
<!DOCTYPE html>
<meta charset="utf-8">
<title>-moz-user-modify should be unsupported in contenteditable</title>
<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>
<div id="contentEditableTrue" contenteditable="true"></div>
<div id="contentEditablePlainText" contenteditable="plaintext-only"></div>
<script>
    test(function() {
        const contentEditableTrue = document.getElementById('contentEditableTrue');
        assert_equals(getComputedStyle(contentEditableTrue).getPropertyValue('-moz-user-modify'), '');
    }, 'contenteditable="true" doesn\'t use unsupported -moz-user-modify property');
    test(function() {
        const contentEditablePlainText = document.getElementById('contentEditablePlainText');
        assert_equals(getComputedStyle(contentEditablePlainText).getPropertyValue('-moz-user-modify'), '');
    }, 'contenteditable="plaintext-only" doesn\'t use unsupported -moz-user-modify property');
</script>