<!DOCTYPE html>
<html>
<head>
<style>
progress::-webkit-progress-bar, progress::-webkit-progress-value {
-webkit-user-modify: read-write;
}
progress {
-webkit-appearance: none;
}
</style>
</head>
<body>
<script src="../../resources/js-test.js"></script>
<p>The inner element of progress should not be deleteable.</p>
<div id="container" contenteditable>
(before)<progress id="progress" min="0" max="100" value="50"></progress>(after)
</div>
<script>
function focusAndType(id, key)
{
var target = document.getElementById(id);
eventSender.mouseMoveTo(target.offsetLeft + 2, target.offsetTop + 2);
eventSender.mouseDown();
eventSender.mouseUp();
eventSender.keyDown(key);
}
var container = document.getElementById("container");
layoutTreeBeforeType = internals.elementLayoutTreeAsText(document.documentElement);
focusAndType("progress", "X");
layoutTreeAfterType = internals.elementLayoutTreeAsText(document.documentElement);
shouldBe("layoutTreeAfterType", "layoutTreeBeforeType");
var successfullyParsed = true;
</script>
</body>
</html>