diff options
Diffstat (limited to 'testing/web-platform/tests/css/css-sizing/aspect-ratio/replaced-element-041.html')
-rw-r--r-- | testing/web-platform/tests/css/css-sizing/aspect-ratio/replaced-element-041.html | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/testing/web-platform/tests/css/css-sizing/aspect-ratio/replaced-element-041.html b/testing/web-platform/tests/css/css-sizing/aspect-ratio/replaced-element-041.html new file mode 100644 index 0000000000..4bfb5e2037 --- /dev/null +++ b/testing/web-platform/tests/css/css-sizing/aspect-ratio/replaced-element-041.html @@ -0,0 +1,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> |