transform-translate-005.html (922B)
1 <!DOCTYPE html> 2 <html> 3 <head> 4 <title>CSS Test (Transforms): Several Translations Combined</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/#two-d-transform-functions"> 8 <link rel="help" href="http://www.w3.org/TR/css-transforms-1/#funcdef-transform-translate"> 9 <meta name="assert" content='This tests that a sequence of positive and 10 negative translations is the same as relative positioning by 50px toward 11 the bottom right.'> 12 <link rel="match" href="transform-translate-ref.html"> 13 <style> 14 div { 15 transform: translate(50px) translate(-100px) translate(150px) 16 translate(-50px) translate(0px, 50px); 17 } 18 </style> 19 </head> 20 <body> 21 <div>Test Text</div> 22 </body> 23 </html>