summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/css/CSS2/normal-flow/inline-replaced-height-010.xht
diff options
context:
space:
mode:
Diffstat (limited to 'testing/web-platform/tests/css/CSS2/normal-flow/inline-replaced-height-010.xht')
-rw-r--r--testing/web-platform/tests/css/CSS2/normal-flow/inline-replaced-height-010.xht55
1 files changed, 55 insertions, 0 deletions
diff --git a/testing/web-platform/tests/css/CSS2/normal-flow/inline-replaced-height-010.xht b/testing/web-platform/tests/css/CSS2/normal-flow/inline-replaced-height-010.xht
new file mode 100644
index 0000000000..c5498e1f73
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/normal-flow/inline-replaced-height-010.xht
@@ -0,0 +1,55 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
+
+<html xmlns="http://www.w3.org/1999/xhtml">
+
+ <head>
+
+ <title>CSS test: height - inline replaced element and max-width</title>
+
+ <link rel="author" title="GĂ©rard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" />
+ <!--
+ Credits must go to Kang-Hao (Kenny) Lu for posting a message
+ on a closely related issue in www-style mailing list.
+ -->
+ <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#inline-replaced-height" title="10.6.2 Inline replaced elements, block-level replaced elements in normal flow, 'inline-block' replaced elements in normal flow and floating replaced elements " />
+ <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#min-max-widths" title="10.4 Minimum and maximum widths: 'min-width' and 'max-width'" />
+ <link rel="match" href="../reference/ref-filled-green-100px-square.xht" />
+ <link rel="bookmark" href="http://lists.w3.org/Archives/Public/www-style/2012Nov/0023.html" title="[css21][css3-box] when only one dimension is specified, replaced element sizing rules are ambiguous and non-interoperable" />
+
+ <meta content="image" name="flags" />
+ <meta content="The height of an inline replaced element should be re-calculated based on its constrained width (constrained by computed 'max-width' value) and based its intrinsic ratio when it has an intrinsic ratio." name="assert" />
+
+ <style type="text/css"><![CDATA[
+ div#overlapped-red-test
+ {
+ position: absolute;
+ z-index: -1;
+ }
+
+ img
+ {
+ height: auto;
+ max-width: 6.25em;
+ width: 12.5em;
+ }
+
+ div#overlapping-green-reference
+ {
+ background-color: green;
+ height: 100px;
+ width: 100px;
+ }
+ ]]></style>
+
+ </head>
+
+ <body>
+
+ <p>Test passes if there is a filled green square and <strong>no red</strong>.</p>
+
+ <div id="overlapped-red-test"><img src="support/swatch-red.png" alt="Image download support must be enabled" /></div>
+
+ <div id="overlapping-green-reference"></div>
+
+ </body>
+</html> \ No newline at end of file