Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / fast / html / meter-user-modify.html
blob42b9612f23d77127875c0c3b2311580bb0c38717
1 <!DOCTYPE html>
2 <html>
3 <head>
4 <style>
5 meter::-webkit-meter-bar {
6 -webkit-user-modify: read-write;
9 meter {
10 -webkit-appearance: none;
12 </style>
13 </head>
14 <body>
15 <script src="../../resources/js-test.js"></script>
17 <p>The inner element of meter should not be deleteable.</p>
19 <div id="container" contenteditable>
20 (before)<meter id="meter" min="0" max="100" value="50"></meter>(after)
21 </div>
23 <script>
24 function focusAndType(id, key)
26 var target = document.getElementById(id);
27 eventSender.mouseMoveTo(target.offsetLeft + 2, target.offsetTop + 2);
28 eventSender.mouseDown();
29 eventSender.mouseUp();
30 eventSender.keyDown(key);
33 var container = document.getElementById("container");
34 layoutTreeBeforeType = internals.elementLayoutTreeAsText(document.documentElement);
36 focusAndType("meter", "X");
38 layoutTreeAfterType = internals.elementLayoutTreeAsText(document.documentElement);
39 shouldBe("layoutTreeAfterType", "layoutTreeBeforeType");
41 var successfullyParsed = true;
42 </script>
43 </body>
44 </html>