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

Side by Side Diff: LayoutTests/fast/replaced/min-height-percentage.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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
(Empty)
1 <!DOCTYPE html>
2 <style>
3 img {min-height: 100%; max-height: 50px;}
4 </style>
5 <p> The blue square should be 50px by 50px. This is because http://www.w3.or g/TR/CSS21/visudet.html#min-max-heights says: "If the height of the containing b lock is not specified explicitly
6 (i.e., it depends on content height), and this element is not absolute ly positioned, the percentage value is treated as '0' (for 'min-height')." </p>
7 <div>
8 <div id="child"><img id="image" src="resources/square-blue-100x100.png"> </div>
9 </div>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698