blob: a2c22d0fab5fe40bfe7296efc7bb18292185fef7 [file] [log] [blame]
<!DOCTYPE html><!-- webkit-test-runner [ PluginsEnabled=false ] --><!-- Disable plugins, because otherwise the "Test WebKit PlugIn" steals <embed>s referencing PNGs. -->
<html>
<head>
<title>object-fit on embeds</title>
<style type="text/css">
img, embed, object, input, canvas, video {
width: 72px;
height: 72px;
margin: 2px 10px;
border: 1px solid black;
background-color: gray;
}
.group { object-fit: contain; }
.group > *:nth-child(1) { object-fit: fill; }
.group > *:nth-child(2) { object-fit: contain; }
.group > *:nth-child(3) { object-fit: cover; }
.group > *:nth-child(4) { object-fit: none; }
.group > *:nth-child(5) { object-fit: scale-down; }
.group > *:nth-child(6) { object-fit: inherit; }
.group > *:nth-child(7) { }
</style>
</head>
<body>
<div class="group">
<embed src="../resources/circles-landscape.png"></embed>
<embed src="../resources/circles-landscape.png"></embed>
<embed src="../resources/circles-landscape.png"></embed>
<embed src="../resources/circles-landscape.png"></embed>
<embed src="../resources/circles-landscape.png"></embed>
<embed src="../resources/circles-landscape.png"></embed>
<embed src="../resources/circles-landscape.png"></embed>
</div>
</body>
</html>