blob: b8ee88ef9f9ec33a9ff99432fd6067bd91e3b91b [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">
.group > div {
display: inline-block;
overflow: hidden;
width: 72px;
height: 72px;
margin: 2px 10px;
border: 1px solid black;
background-color: gray;
}
.group > * > * { display: block; }
.group > *:nth-child(1) * { width:100%; height:100%; }
.group > *:nth-child(2) * { width:100%; margin-top:25%; }
.group > *:nth-child(3) * { height:100%; margin-left:-50%; }
.group > *:nth-child(4) * { width:288px; margin-left:-108px; margin-top:-36px; }
.group > *:nth-child(5) * { width:100%; margin-top:25%; }
.group > *:nth-child(6) * { width:100%; margin-top:25%; }
.group > *:nth-child(7) * { width:100%; height:100%; }
</style>
</head>
<body>
<div class="group">
<div><embed src="../resources/circles-landscape.png"></embed></div>
<div><embed src="../resources/circles-landscape.png"></embed></div>
<div><embed src="../resources/circles-landscape.png"></embed></div>
<div><embed src="../resources/circles-landscape.png"></embed></div>
<div><embed src="../resources/circles-landscape.png"></embed></div>
<div><embed src="../resources/circles-landscape.png"></embed></div>
<div><embed src="../resources/circles-landscape.png"></embed></div>
</div>
</body>
</html>