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

Unified Diff: LayoutTests/fast/css-intrinsic-dimensions/height.html

Issue 13674002: Support intrinsic values for height, min-height and max-height (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: CSS table tests Created 7 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
« no previous file with comments | « no previous file | LayoutTests/fast/css-intrinsic-dimensions/height-css-tables.html » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: LayoutTests/fast/css-intrinsic-dimensions/height.html
diff --git a/LayoutTests/fast/css-intrinsic-dimensions/height.html b/LayoutTests/fast/css-intrinsic-dimensions/height.html
new file mode 100644
index 0000000000000000000000000000000000000000..35ff3b6386faf822e8677794d962c8fb177218ad
--- /dev/null
+++ b/LayoutTests/fast/css-intrinsic-dimensions/height.html
@@ -0,0 +1,92 @@
+<!DOCTYPE html>
+<!--
+All divs here should shrinkwrap to fit their content, except for fill-available
+-->
+<style>
+ @import "resources/height-keyword-classes.css";
+
+ body * {
+ border: 2px solid red;
+ padding: 5px;
+ clear: both;
+ }
+
+ .container {
+ height: 300px;
+ border-color: blue;
+
+ display: inline-block;
+ width: 100px;
+ }
+
+ .small {
+ height: 1px;
+ }
+
+ .big {
+ height: 100px;
+ }
+
+ .really-big {
+ height: 1000px;
+ }
+</style>
+<div class="container">
+ <div class="min-content">
+ height: min-content<br>on this box.
+ </div>
+
+ <div class="max-content">
+ height: max-content<br>on this box.
+ </div>
+
+ <div class="fit-content">
+ height: fit-content<br>on this box.
+ </div>
+</div>
+
+<div class="container">
+ <div class="fill-available">
+ height: fill-available<br> on this box.
+ </div>
+</div>
+
+<div class="container">
+ <div class="small min-height-min-content">
+ min-height: min-content<br>on this box.
+ </div>
+
+ <div class="small min-height-max-content">
+ min-height: max-content<br>on this box.
+ </div>
+
+ <div class="small min-height-fit-content">
+ min-height: fit-content<br>on this box.
+ </div>
+</div>
+
+<div class="container">
+ <div class="small min-height-fill-available">
+ min-height: fill-available<br> on this box.
+ </div>
+</div>
+
+<div class="container">
+ <div class="big max-height-min-content">
+ max-height: min-content<br>on this box.
+ </div>
+
+ <div class="big max-height-max-content">
+ max-height: max-content<br>on this box.
+ </div>
+
+ <div class="big max-height-fit-content">
+ max-height: fit-content<br>on this box.
+ </div>
+</div>
+
+<div class="container">
+ <div class="really-big max-height-fill-available">
+ max-height: fill-available<br> on this box.
+ </div>
+</div>
« no previous file with comments | « no previous file | LayoutTests/fast/css-intrinsic-dimensions/height-css-tables.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698