| <!DOCTYPE html> |
| <html> |
| <head> |
| <style> |
| |
| .box { |
| width: 100px; |
| height: 100px; |
| } |
| |
| .green { |
| background-color: green; |
| } |
| |
| .lime { |
| background-color: lime; |
| } |
| |
| .blue { |
| background-color: blue; |
| } |
| |
| .behind { |
| position: absolute; |
| top: 50px; |
| left: 50px; |
| } |
| |
| .inmiddle { |
| position: absolute; |
| top: 80px; |
| left: 80px; |
| } |
| |
| .ontop { |
| position: absolute; |
| top: 110px; |
| left: 110px; |
| } |
| |
| #layertree { |
| position: absolute; |
| left: 10000px; |
| top: 0px; |
| } |
| |
| body { |
| overflow: hidden; |
| } |
| |
| </style> |
| </head> |
| |
| <body> |
| <!-- This green div should be completely underneath the lime div --> |
| <div class="green box behind"> </div> |
| <!-- This lime colored div should correctly detect overlap and become composited. --> |
| <div class="lime box inmiddle"> </div> |
| <!-- The blue colord div should also correctly detect overlap on top of the second layer. --> |
| <div class="blue box ontop"> </div> |
| </body> |
| |
| </html> |