Source code
Revision control
Copy as Markdown
Other Tools
<!DOCTYPE html>
<title>Canvas.drawElementImage: content draws correct with object-fit: fill in a wide box - ref</title>
<style>
#child {
position: relative;
left: 60px;
top: 45px;
width: 200px;
height: 200px;
background: green;
}
#canvas {
background-color: gray;
width: 400px;
height: 300px;
}
</style>
<div id=canvas>
<div id=child></div>
</div>
</html>