Demo: canvas test 3

This test creates a canvas nested inside two DIV tags. Three overlapping rectangles are drawn inside the canvas. The second and third canvases use rgba() to specify alpha values that affect the color of the overlapping areas.


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