| <!DOCTYPE html> | |
| <!-- | |
| | One should be able to specify transform functions via scale functions. | |
| | A two time scaled green square is contiguous to a red square. | |
| --> | |
| <html> | |
| <head> | |
| <style> | |
| .container { | |
| position: absolute; | |
| } | |
| .redSquare { | |
| background-color: red; | |
| left: 0; | |
| top : 0; | |
| width: 100px; | |
| height: 100px; | |
| } | |
| .greenSquare { | |
| transform: scale(2); | |
| transform-origin: 0 0; | |
| left: 100px; | |
| top :100px; | |
| width: 100px; | |
| height: 100px; | |
| background-color: green; | |
| position: absolute; | |
| } | |
| </style> | |
| </head> | |
| <body> | |
| <div class="container"> | |
| <div class="redSquare"></div> | |
| <div class="greenSquare"></div> | |
| </div> | |
| </body> | |
| </html> |