transform-matrix-003.html (858B)
1 <!DOCTYPE html> 2 <html> 3 <head> 4 <title>CSS Test (Transforms): matrix()/translateX(%)</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-matrix"> 9 <meta name="assert" content='This tests that translateX() with a percentage 10 argument has the same effect as an equivalent matrix().'> 11 <link rel="match" href="transform-matrix-003-ref.html"> 12 <style> 13 div { 14 transform: matrix(1, 0, 0, 1, 47, 0); 15 width: 100px; 16 height: 100px; 17 background: gold; 18 } 19 </style> 20 </head> 21 <body> 22 <div></div> 23 </body> 24 </html>