transform-percent-003.html (1024B)
1 <!DOCTYPE html> 2 <html> 3 <head> 4 <title>CSS Test (Transforms): Percentages (translate)</title> 5 <link rel="author" title="Keith Schwarz" href="mailto:keith@keithschwarz.com"> 6 <link rel="author" title="Aryeh Gregor" href="mailto:ayg@aryeh.name"> 7 <link rel="help" href="http://www.w3.org/TR/css-transforms-1/#transform-property"> 8 <meta name="assert" content="This is part of a series of tests that check 9 that percentages in 'transform' values are evaluated relative to the 10 transformed element's border box."> 11 <link rel="match" href="transform-percent-ref.html"> 12 <link rel="mismatch" href="transform-percent-notref.html"> 13 <style> 14 div { 15 width: 100px; 16 height: 50px; 17 background: gold; 18 position: absolute; 19 left: 100px; 20 top: 100px; 21 transform: rotate(10deg) translatex(50px) rotate(10deg) 22 translatey(50px) skewx(10deg) translate(25%, 50%); 23 } 24 </style> 25 </head> 26 <body> 27 <div></div> 28 </body> 29 </html>