html2canvas/tests/reftests/transform/nested.html

49 lines
1.5 KiB
HTML
Raw Normal View History

2013-08-04 20:21:00 +04:00
<!DOCTYPE html>
<html>
<head>
<title>Nested transform tests</title>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<script type="text/javascript" src="../../test.js"></script>
<style>
#first {
background: indianred;
margin-top: 100px;
}
#second {
2014-03-02 18:00:59 +04:00
border: 15px solid red;
2013-08-04 20:21:00 +04:00
background: darkseagreen;
-webkit-transform: rotate(7.5deg); /* Chrome, Safari 3.1+ */
-moz-transform: rotate(7.5deg); /* Firefox 3.5-15 */
-ms-transform: rotate(7.5deg); /* IE 9 */
-o-transform: rotate(7.5deg); /* Opera 10.50-12.00 */
transform: rotate(7.5deg);
}
#third {
background: cadetblue;
-webkit-transform: rotate(-70.5deg); /* Chrome, Safari 3.1+ */
-moz-transform: rotate(-70.5deg); /* Firefox 3.5-15 */
-ms-transform: rotate(-70.5deg); /* IE 9 */
-o-transform: rotate(-70.5deg); /* Opera 10.50-12.00 */
transform: rotate(-70.5deg); /* Firefox 16+, IE 10+, Opera 12.10+ */
}
2014-03-02 18:00:59 +04:00
#fourth {
background: #bc8f8f;
}
2013-08-04 20:21:00 +04:00
div {
display: inline-block;
2014-03-02 18:00:59 +04:00
2013-08-04 20:21:00 +04:00
}
body {
font-family: Arial;
}
</style>
2013-08-04 20:21:00 +04:00
</head>
<body>
<div id="first">First level content <div id="second">with second level content <div id="third">and third level content</div>, ending second</div>, ending first</div>
2014-03-02 18:00:59 +04:00
<div id="fourth">something else</div>
2013-08-04 20:21:00 +04:00
</body>
</html>