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

Unified Diff: LayoutTests/fast/replaced/min-height-percentage-expected.html

Issue 360613003: Ensure we compute the min and max height of replaced elements to 'none' or 0 when appropriate. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Updated Created 6 years, 5 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: LayoutTests/fast/replaced/min-height-percentage-expected.html
diff --git a/LayoutTests/fast/replaced/min-height-percentage-expected.html b/LayoutTests/fast/replaced/min-height-percentage-expected.html
new file mode 100644
index 0000000000000000000000000000000000000000..19c02cbb81dd3cb667bed689a57fd61b5fb340fa
--- /dev/null
+++ b/LayoutTests/fast/replaced/min-height-percentage-expected.html
@@ -0,0 +1,9 @@
+<!DOCTYPE html>
+ <style>
+ img { height: 50px;}
+ </style>
+ <p> The blue square should be 50px by 50px. This is because http://www.w3.org/TR/CSS21/visudet.html#min-max-heights says: "If the height of the containing block is not specified explicitly
+ (i.e., it depends on content height), and this element is not absolutely positioned, the percentage value is treated as '0' (for 'min-height')." </p>
+ <div>
+ <img id="image" src="resources/square-blue-100x100.png">
+ </div>
« no previous file with comments | « LayoutTests/fast/replaced/min-height-percentage.html ('k') | LayoutTests/fast/replaced/min-height-percentage-quirks.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698