Index: LayoutTests/fast/css-intrinsic-dimensions/height-positioned-expected.html |
diff --git a/LayoutTests/fast/css-intrinsic-dimensions/height-positioned-expected.html b/LayoutTests/fast/css-intrinsic-dimensions/height-positioned-expected.html |
new file mode 100644 |
index 0000000000000000000000000000000000000000..8e2519629256326c8bf32f68493e190a27c1b6e2 |
--- /dev/null |
+++ b/LayoutTests/fast/css-intrinsic-dimensions/height-positioned-expected.html |
@@ -0,0 +1,120 @@ |
+<!doctype html> |
+<!-- |
+All divs here should shrinkwrap to fit their content, except for fill-available |
+--> |
+<style> |
+ body * { |
+ border: 2px solid red; |
+ padding: 5px; |
+ clear: both; |
+ } |
+ |
+ .container { |
+ height: 400px; |
+ border-color: blue; |
+ |
+ display: inline-block; |
+ width: 100px; |
+ } |
+ |
+ .position-container { |
+ border-color: green; |
+ position: relative; |
+ height: 100px; |
+ } |
+ |
+ .position-container > * { |
+ position: absolute; |
+ } |
+ |
+ .f-a-container { |
+ height: 100%; |
+ box-sizing: border-box; |
+ } |
+ |
+ .fill-available { |
+ height: 386px; |
+ box-sizing: border-box; |
+ } |
+</style> |
+<div class="container"> |
+ <div class="position-container"> |
+ <div> |
+ height: min-content<br>on this box. |
+ </div> |
+ </div> |
+ <div class="position-container"> |
+ <div> |
+ height: max-content<br>on this box. |
+ </div> |
+ </div> |
+ <div class="position-container"> |
+ <div> |
+ height: fit-content<br>on this box. |
+ </div> |
+ </div> |
+</div> |
+ |
+<div class="container"> |
+ <div class="position-container f-a-container"> |
+ <div class="fill-available"> |
+ height: fill-available<br> on this box. |
+ </div> |
+ </div> |
+</div> |
+ |
+<div class="container"> |
+ <div class="position-container"> |
+ <div> |
+ min-height: min-content<br>on this box. |
+ </div> |
+ |
+ </div> |
+ <div class="position-container"> |
+ <div> |
+ min-height: max-content<br>on this box. |
+ </div> |
+ |
+ </div> |
+ <div class="position-container"> |
+ <div> |
+ min-height: fit-content<br>on this box. |
+ </div> |
+ </div> |
+</div> |
+ |
+<div class="container"> |
+ <div class="position-container f-a-container"> |
+ <div class="fill-available"> |
+ min-height: fill-available<br> on this box. |
+ </div> |
+ </div> |
+</div> |
+ |
+<div class="container"> |
+ <div class="position-container"> |
+ <div> |
+ max-height: min-content<br>on this box. |
+ </div> |
+ |
+ </div> |
+ <div class="position-container"> |
+ <div> |
+ max-height: max-content<br>on this box. |
+ </div> |
+ |
+ </div> |
+ <div class="position-container"> |
+ <div> |
+ max-height: fit-content<br>on this box. |
+ </div> |
+ </div> |
+</div> |
+ |
+<div class="container"> |
+ <div class="position-container f-a-container"> |
+ <div class="fill-available"> |
+ max-height: fill-available<br> on this box. |
+ </div> |
+ </div> |
+</div> |