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,
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;
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>
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
>
47 if (window
.testRunner
)
48 testRunner
.dumpAsText();
50 function focusAndType(id
, key
)
52 if (!window
.eventSenver
)
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";