summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/css/css-ui/historical/user-modify-02.html
blob: 2a96871d90bc5f157c3c9d19bced34a3f206fd20 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
<!DOCTYPE html>
<meta charset="utf-8">
<title>user-modify should be unsupported in contenteditable</title>
<link rel="help" href="https://developer.mozilla.org/en-US/docs/Web/CSS/user-modify">
<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('user-modify'), '');
    }, 'contenteditable="true" doesn\'t use unsupported user-modify property');

    test(function() {
        const contentEditablePlainText = document.getElementById('contentEditablePlainText');
        assert_equals(getComputedStyle(contentEditablePlainText).getPropertyValue('user-modify'), '');
    }, 'contenteditable="plaintext-only" doesn\'t use unsupported user-modify property');
</script>