The specification clearly indicates that this is not possible:
The contents of the canvas element, if any, are the element's fallback content .
And fallback content is the content that will be visible if the external element cannot be displayed ( source ):
It can not be used (for example, because it is the unsupported format).
To achieve something similar to your task, you can use 2 absolutely positioned canvases:
<canvas width="500" height="300" style="background: black;"> </canvas> <canvas width="400" height="200" style="background: red; position: absolute; left: 50px; top: 50px;"> </canvas>