Demo: canvas test 2

This test creates a canvas nested inside two DIV tags. Two overlapping rectangles are drawn inside the canvas. The second canvas uses rgba() to specify an alpha value that affects the overlap area.


Outer div(width=100%):
Inner div(width=90%):
Canvas(width=300):
(canvas content)