2 <title>Tests for bug
823483</title>
5 body, input { font-size:
10px }
6 body { line-height:
1.5 }
7 input { padding:
0 1px; border:
1px solid maroon; font-family: monospace }
19 td:nth-child(
1)
> * { vertical-align: bottom }
29 <td>img, unstyled
</td>
33 <td><img style=
"width: 50%"></td>
34 <td>img, width:
50%
</td>
38 <td><img style=
"max-width: 50%"></td>
39 <td>img, max-width:
50%
</td>
43 <td><canvas height=
"10" width=
"10"></canvas></td>
44 <td>canvas, unstyled
</td>
48 <td><canvas style=
"width: 50%" height=
"10" width=
"10"></canvas></td>
49 <td>canvas, width:
50%
</td>
53 <td><canvas style=
"max-width: 50%" height=
"10" width=
"10"></canvas></td>
54 <td>canvas, max-width:
50%
</td>
58 <td><iframe height=
"10" width=
"10"></iframe></td>
59 <td>iframe, almost unstyled
</td>
63 <td><iframe style=
"width: 50%" height=
"10" width=
"10"></iframe></td>
64 <td>iframe, width:
50%
</td>
68 <td><iframe style=
"max-width: 50%" height=
"10" width=
"10"></iframe></td>
69 <td>iframe, max-width:
50%
</td>
73 <td><input type=
"text"></td>
74 <td>input
type=
"text", unstyled
</td>
78 <td><input type=
"text" style=
"width: 50%"></td>
79 <td>input
type=
"text", width:
50%
</td>
83 <td><input type=
"text" style=
"max-width: 50%; visibility: hidden"></td>
84 <td>input
type=
"text", max-width:
50%
</td>
88 <td><input type=
"button"></td>
89 <td>empty input
type=
"button", unstyled
</td>
93 <td><input type=
"button" style=
"width: 50%"></td>
94 <td>empty input
type=
"button", width:
50%
</td>
98 <td><input type=
"button" style=
"max-width: 50%"></td>
99 <td>empty input
type=
"button", max-width:
50%
</td>
103 <td><input type=
"button" value=
"Button"></td>
104 <td>nonempty input
type=
"button", unstyled
</td>
108 <td><input type=
"button" value=
"Button" style=
"width: 50%; visibility: hidden"></td>
109 <td>nonempty input
type=
"button", width:
50%
</td>
113 <td><input type=
"button" value=
"Button" style=
"max-width: 50%; visibility: hidden"></td>
114 <td>nonempty input
type=
"button", max-width:
50%
</td>
119 var images
= document
.getElementsByTagName("img");
120 for (var i
= 0; i
< images
.length
; ++i
) {
121 var image
= images
[i
];
122 image
.src
= "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAIAAAD8GO2jAAAAAXNSR0IArs4c6QAAAChJREFUSMftzUEBAAAEBLCjf2dK8NsKrJLJp84zgUAgEAgEAoFAcGUBocYBP+pqhN4AAAAASUVORK5CYII=";