scale-transform-overlap-ref.html (682B)
1 <!DOCTYPE html> 2 <head> 3 <title>CSS Test (Transforms): Tests overlap testing + clipping + scale transforms + compositing.</title> 4 <link rel="author" title="Chris Harrelson" href="mailto:chrishtr@chromium.org"> 5 <link rel="help" href="http://www.w3.org/TR/css-transforms-1/"> 6 </head> 7 <style> 8 div { 9 position: absolute; 10 width: 50px; 11 height: 50px; 12 transform-origin: 0px 0px; 13 } 14 </style> 15 <div style="width: 250px; height: 100px; transform: translate(-250px, 50px) scale(1.8, 1.8);"> 16 <div style="transform: translate(160px, 0px)"> 17 <div style="background: lightblue"></div> 18 <div style="background: green; left: 10px; top: 10px;"></div> 19 </div> 20 </div>