Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(478)

Unified Diff: third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/inline-replaced-width-017.xht

Issue 2818243002: Import css21/normal-flow W3C CSS Test Suite (Closed)
Patch Set: git rebase-update Created 3 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/inline-replaced-width-017.xht
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/inline-replaced-width-017.xht b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/inline-replaced-width-017.xht
new file mode 100644
index 0000000000000000000000000000000000000000..232dc7622f7c955ec94c8f7636595e21c79bfb39
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/inline-replaced-width-017.xht
@@ -0,0 +1,51 @@
+<!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: width - inline replaced element and min-height</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-width" title="10.3.2 Calculating width of inline, replaced elements" />
+ <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#min-max-heights" title="10.7 Minimum and maximum heights: 'min-height' and 'max-height'" />
+ <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 width of an inline replaced element should be re-calculated based on its constrained height (constrained by computed 'min-height' value) and based its intrinsic ratio when it has an intrinsic ratio." name="assert" />
+
+ <style type="text/css"><![CDATA[
+ div#overlapped-red-reference
+ {
+ background-color: red;
+ height: 100px;
+ position: absolute;
+ width: 100px;
+ z-index: -1;
+ }
+
+ img
+ {
+ min-height: 6.25em;
+ height: 0em;
+ width: auto;
+ }
+ ]]></style>
+
+ </head>
+
+ <body>
+
+ <p>Test passes if there is a filled green square and <strong>no red</strong>.</p>
+
+ <div id="overlapped-red-reference"></div>
+
+ <div id="overlapping-green-test"><img src="support/swatch-green.png" alt="Image download support must be enabled" /></div>
+
+ </body>
+</html>

Powered by Google App Engine
This is Rietveld 408576698