Is it possible to have a element within another element? I know i can layer them, but is this possible -
If you want to handle background and foreground separately, you could use two canvas and put one above the other with css.
Actually this one of the tips to improve canvas performance. Source: HTML5 Rocks