transform-transformed-th-contains-fixed-position.html (1164B)
1 <!DOCTYPE html> 2 <html> 3 <head> 4 <title>CSS Test (Transforms): Transformed th contains fixed position elements.</title> 5 <link rel="author" title="Vladimir Levin" href="mailto:vmpstr@chromium.org"> 6 <link rel="help" href="http://www.w3.org/TR/css-transforms-1/#transform-rendering"> 7 <meta name="assert" content='This test ensures that transformed th element is a containing block for fixed position elements.'> 8 <link rel="match" href="transform-transformed-th-contains-fixed-position-ref.html"> 9 <style> 10 table, tr, td, th { 11 margin: 0; 12 padding: 0; 13 border-spacing: 0; 14 font-weight: bold; 15 text-align: left; 16 } 17 .pad { 18 height: 50px; 19 } 20 .container { 21 transform: translateX(20px) rotate(45deg); 22 transform-origin: left; 23 } 24 .fixed { 25 position: fixed; 26 top: 15px; 27 left: 10px; 28 background-color: lightblue; 29 } 30 </style> 31 </head> 32 <body> 33 <div class='pad'></div> 34 <table> 35 <tr> 36 <th class='container'>some text<div class='fixed'>fixed</div> 37 </th> 38 </tr> 39 </table> 40 </body> 41 </html>