Move parseFontFaceDescriptor to CSSPropertyParser.cpp
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / fast / forms / input-user-modify.html
blob639b45798ea9f3290f2cfc2a0421a4e2e6a6efa5
1 <!DOCTYPE html>
2 <html>
3 <head>
4 <style>
5 input::-webkit-textfield-decoration-container,
6 input[type="search"]::-webkit-textfield-decoration-container,
7 input[type="search"]::-webkit-search-cancel-button,
8 input[type="search"]::-webkit-search-decoration,
9 input[type="search"]::-webkit-search-results-decoration,
10 input[type="search"]::-webkit-search-results-button,
11 ::-webkit-input-placeholder,
12 input::-webkit-input-placeholder,
13 isindex::-webkit-input-placeholder,
14 input[type="button"], input[type="submit"], input[type="reset"],
15 input[type="file"]::-webkit-file-upload-button,
16 button,
17 input[type="range"]::-webkit-slider-container,
18 input[type="range"]::-webkit-media-slider-container,
19 input[type="range"]::-webkit-slider-runnable-track,
20 input[type="range"]::-webkit-slider-thumb,
21 input[type="range"]::-webkit-color-swatch-wrapper,
22 input[type="range"]::-webkit-color-swatch,
23 input::-webkit-calendar-picker-indicator {
24 -webkit-user-modify: read-write;
26 </style>
27 </head>
28 <body>
30 <p>The inner element of input should not be modifiable.
31 Trying to delete the inner element of input should not cause a crash.</p>
33 <div id="container">
34 <input id="search" type="search">
35 <input id="file" type="file">
36 <input id="range" type="range">
37 <input id="color" type="color">
38 <input id="number" type="number">
39 <input id="placeholder" type="text" placeholder="something">
40 <button id="button">something</button>
41 <input id="date" type="date">
42 <video id="video" controls>
43 <audio id="audio" controls>
44 </div>
46 <script>
47 if (window.testRunner)
48 testRunner.dumpAsText();
50 function focusAndType(id, key)
52 if (!window.eventSenver)
53 return;
55 var target = document.getElementById(id);
56 eventSender.mouseMoveTo(target.offsetLeft + 2, target.offsetTop + 2);
57 eventSender.mouseDown();
58 eventSender.mouseUp();
59 eventSender.keyDown(key);
62 var container = document.getElementById("container");
64 focusAndType("search", "delete");
65 focusAndType("file", "delete");
66 focusAndType("range", "delete");
67 focusAndType("color", "delete");
68 focusAndType("number", "delete");
69 focusAndType("placeholder", "delete");
70 focusAndType("button", "delete");
71 focusAndType("date", "delete");
72 focusAndType("video", "delete");
73 focusAndType("audio", "delete");
75 if (window.testRunner)
76 container.innerHTML = "PASS";
77 </script>
78 </body>
79 </html>