html2canvas/tests/reftests/forms.html

97 lines
4.1 KiB
HTML
Raw Normal View History

2011-07-29 23:56:33 +04:00
<!DOCTYPE html>
<html>
<head>
<title>Form tests</title>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
2012-12-28 01:06:47 +04:00
<script type="text/javascript" src="../test.js"></script>
2011-07-29 23:56:33 +04:00
<style>
2017-08-11 17:22:39 +03:00
body, html {
margin: 0;
}
input[type="radio"], input[type="checkbox"] {
margin: 10px;
display: inline-block;
2017-08-10 18:26:22 +03:00
height: 20px;
2017-08-11 17:22:39 +03:00
border-color: #000;
font-family: Arial;
font-size: 10px;
vertical-align: top;
2017-08-10 18:26:22 +03:00
}
2017-08-11 17:22:39 +03:00
input[type="text"], input[type="password"], input[type="submit"], input[type="reset"], input[type="button"], button, textarea, select {
2017-08-10 18:26:22 +03:00
height: 20px;
padding: 2px;
border-width: 2px;
width: 150px;
2017-08-11 17:22:39 +03:00
border-color: #000;
font-family: Arial;
font-size: 16px;
background-color: #fff;
color: #000;
}
2011-07-29 23:56:33 +04:00
</style>
</head>
2012-12-28 01:06:47 +04:00
<body>
2014-09-14 18:44:55 +04:00
<input type="hidden" value="THIS SHOULD NOT BE VISIBLE!" />
2011-07-29 23:56:33 +04:00
<input type="text" value="textbox" />
<input type="password" value="textbox" />
2011-07-29 23:56:33 +04:00
<input type="text" value="textbox" style="border:5px solid navy;" />
<input type="text" value="textbox" style="border:5px solid navy;height:40px;" />
<input type="text" value="textbox" style="border:5px solid navy;height:40px;padding:10px;" />
<input type="text" value="textbox" style="padding:10px;" />
<input type="text" value="textbox" style="padding:10px;text-align:right;" />
<select>
<option value="1">Value 1</option>
<option value="2">Value 2</option>
<option value="3">Value 3</option>
</select>
<select>
</select>
<select>
<option value="">2</option>
</select>
<select>
<option value="1">Value 1</option>
<option value="2" selected>Value 2 with something else</option>
<option value="3">Value 3</option>
</select>
<input type="submit" value="Submit" />
<input type="Button" value="Button" />
<input type="Reset" value="Reset" />
<input type="submit" value="Submit" style="width:200px;" />
<input type="Button" value="Button" style="width:200px;height:50px;" />
<input type="Reset" value="Reset" style="width:200px;height:50px;text-align:left;" />
2012-12-28 01:06:47 +04:00
2011-07-29 23:56:33 +04:00
<textarea> </textarea>
<textarea style="border-width:10px;"></textarea>
2012-12-28 01:06:47 +04:00
2011-07-29 23:56:33 +04:00
<textarea> text </textarea>
<textarea style="border-width:10px;">text</textarea>
<input type="radio" value="radio1" />
<input type="radio" value="radio2" style="transform:scale(3)" />
<input type="RADIO" value="radio3" checked />
<input type="radio" value="radio4" style="transform:scale(3)" checked />
<input type="radio" value="radio5" style="transform:scale(3); background: red;" />
<input type="radio" value="radio6" style="width: 200px;" />
<input type="radio" value="radio6" style="width: 200px; height: 200px;" />
<input type="radio" value="radio6" style="width: 200px; height: 200px;" checked />
<input type="checkbox" value="checkbox1" />
<input type="chECKbox" value="checkbox2" style="transform:scale(3)" />
<input type="checkbox" value="checkbox3" checked />
<input type="checkbox" value="checkbox4" style="transform:scale(3)" checked />
<input type="checkbox" value="checkbox5" style="transform:scale(3); background: red;" />
<input type="checkbox" value="checkbox6" style="width: 200px;" />
<input type="checkbox" value="checkbox6" style="width: 200px; height: 200px;" />
<input type="checkbox" value="checkbox6" style="width: 200px; height: 200px;" checked />
2017-08-11 17:22:39 +03:00
<div style="width: 10px; height: 10px; border:1px solid rgb(165,165,165); border-radius: 3px; background: rgb(222,222,222)"></div>
2011-07-29 23:56:33 +04:00
</body>
</html>