002c04d07de57ad707e30a3d30019bb3c98b06c8.svn-base 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4. <title>Nested transform tests</title>
  5. <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  6. <script type="text/javascript" src="../../test.js"></script>
  7. <style>
  8. #first {
  9. background: indianred;
  10. margin-top: 100px;
  11. }
  12. #second {
  13. border: 10px solid red;
  14. background: darkseagreen;
  15. -webkit-transform: translate(125px); /* Chrome, Safari 3.1+ */
  16. -moz-transform: translate(125px); /* Firefox 3.5-15 */
  17. -ms-transform: translate(125px); /* IE 9 */
  18. -o-transform: translate(125px); /* Opera 10.50-12.00 */
  19. transform: translate(125px);
  20. }
  21. #third {
  22. background: cadetblue;
  23. -webkit-transform: translate(-100px, -25px); /* Chrome, Safari 3.1+ */
  24. -moz-transform: translate(100px, -25px); /* Firefox 3.5-15 */
  25. -ms-transform: translate(100px, -25px); /* IE 9 */
  26. -o-transform: translate(100px, -25px); /* Opera 10.50-12.00 */
  27. transform: translate(100px, -25px);
  28. -webkit-transform-origin: 100px 50px;
  29. -moz-transform-origin: 100px 50px;
  30. -ms-transform-origin: 100px 50px;
  31. -o-transform-origin: 100px 50px;
  32. transform-origin: 100px 50px;
  33. }
  34. div {
  35. display: inline-block;
  36. padding: 10px;
  37. }
  38. </style>
  39. </head>
  40. <body>
  41. <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>
  42. </body>
  43. </html>