blob: 797a5c1066c56d3367c3d65447f4b99c2a19974d [file] [log] [blame]
<!DOCTYPE html>
<html>
<head>
<script src="../../../resources/js-test.js"></script>
</head>
<body>
<p id="description"></p>
<div id="console"></div>
<div id="result"></div>
<div id="div" contentEditable="false">
<p id="p"></p>
</div>
<script>
description('When contentEditable is missing, it maps to "inherit" state and the element is NOT editable if its parent is NOT.')
shouldBe('document.getElementById("p").hasAttribute("contentEditable")','false');
shouldBe('document.getElementById("p").contentEditable', '"inherit"');
shouldBe('document.getElementById("p").isContentEditable', 'false');
shouldBe('window.getComputedStyle(p, "").getPropertyValue("-webkit-user-modify")', '"read-only"');
document.getElementById("div").style.display= 'none';
</script>
</body>
</html>