summaryrefslogtreecommitdiffstats
path: root/third_party/WebKit/LayoutTests/fast/forms/button-default-title.html
blob: f6bf7bc1fb4c6fdc0563840c85a43570ac43883a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
<html>

<head>
   <style type="text/css">
      .testButton {
         background: green;
         height: 21px;
         width: 80px;
      }
   </style>
</head>

<body>

<h3>&lt;input type=&quot;submit&quot;&gt;</h3>

<p>This button should have the default submit button title:</p>
   <input type="submit" class="testButton"/>

<p>This button should should have the title &quot;Foo&quot;:</p>
   <input type="submit" value="Foo" class="testButton"/>

<p>This button should have a single space in its title:</p>
   <input type="submit" value=" " class="testButton"/>

<p>This button should have no title:</p>
   <input type="submit" value="" class="testButton"/>


<h3>&lt;input type=&quot;reset&quot;&gt;</h3>

<p>This button should have the default reset button title:</p>
   <input type="reset" class="testButton"/>

<p>This button should should have the title &quot;Foo&quot;:</p>
   <input type="reset" value="Foo" class="testButton"/>

<p>This button should have a single space in its title:</p>
   <input type="reset" value=" " class="testButton"/>

<p>This button should have no title:</p>
   <input type="reset" value="" class="testButton"/>

</body>

</html>