blob: 51536eac8e64d2a41d71bb4da205fe9cb19d3467 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
|
<!DOCTYPE html>
<html>
<head>
<title>Test image aspect ratio when both dimensions are relative and container is fixed</title>
<style>
div {
border: 1px solid black;
width: 64px;
height: 256px;
}
img {
width:100%;
height:100%;
}
</style>
</head>
<body>
<p>The image must fill the complete div even if that means distorting it.
The image specifies the size as 100% of the container in both dimensions and
the container has a fixed size.</p>
<div>
<img src="pic.png">
</div>
</body>
</html>
|