| OLD | NEW |
| 1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
| 2 <style> | 2 <style> |
| 3 div { | 3 div { |
| 4 width: 100px; | 4 width: 100px; |
| 5 height: 100px; | 5 height: 100px; |
| 6 background-color: blue; | 6 background-color: blue; |
| 7 } | 7 } |
| 8 .container { | 8 .container { |
| 9 translate: 100px 100px; | 9 translate: 100px 100px; |
| 10 background-color: red; | 10 transform-style: preserve-3d; |
| 11 perspective-origin: 150% 150%; | 11 perspective-origin: 150% 150%; |
| 12 perspective: 500px; | 12 perspective: 500px; |
| 13 } | 13 } |
| 14 #box1 { | 14 #box1 { |
| 15 translate: inherit; | 15 translate: inherit; |
| 16 } | 16 } |
| 17 #box2 { | 17 #box2 { |
| 18 translate: 100% -200% -500px; | 18 translate: 100% -200% -500px; |
| 19 } | 19 } |
| 20 #box3 { | 20 #box3 { |
| 21 translate: 0px 0px 10em; |
| 22 } |
| 23 #box4 { |
| 21 translate: 300px; | 24 translate: 300px; |
| 22 } | 25 } |
| 23 </style> | 26 </style> |
| 24 | 27 |
| 25 <div class="container"> | 28 <div class="container"> |
| 29 container |
| 26 <div id="box1">1</div> | 30 <div id="box1">1</div> |
| 27 <div id="box2">2</div> | 31 <div id="box2">2</div> |
| 32 <div id="box3">3</div> |
| 28 </div> | 33 </div> |
| 29 <div id="box3">3</div> | 34 <div id="box4">4</div> |
| OLD | NEW |