summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/css/css-sizing/aspect-ratio/replaced-element-041.html
blob: 4bfb5e2037eba7260aaa58b0ee376523fdf280de (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>Replaced Element 041</title>
<link rel="author" title="Sammy Gill" href="mailto:sammy.gill@apple.com">
<link rel="help" href="https://www.w3.org/TR/css-sizing-4/#aspect-ratio-size-transfers">
<link rel="match" href="/css/reference/ref-filled-green-100px-square-only.html"/>
<meta name="assert" content="Replaced element transferred max size should be floored by transferred min size" />
<style>
div {
    width: 0px;
}
img {
    min-width: 100px;
    max-width: 100%;
}
</style>
</head>
<body>
<p>Test passes if there is a filled green square.</p>
<div style="width: 0px">
<img src="/css/support/60x60-green.png">
</div>
</body>
</html>