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