1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/layout/reftests/flexbox/pagination/flexbox-empty-2-ref.html Wed Dec 31 06:09:35 2014 +0100 1.3 @@ -0,0 +1,136 @@ 1.4 +<!DOCTYPE html> 1.5 +<!-- Any copyright is dedicated to the Public Domain. 1.6 + http://creativecommons.org/publicdomain/zero/1.0/ --> 1.7 +<!-- Testcase for how we fragment an empty fixed-height flex container, with 1.8 + margin/border/padding that are larger than the available height, 1.9 + and with the flex container having "flex-direction: row". 1.10 +--> 1.11 +<html> 1.12 + <head> 1.13 + <style> 1.14 + .multicol { 1.15 + height: 10px; 1.16 + width: 100px; 1.17 + -moz-column-width: 20px; 1.18 + -moz-column-fill: auto; 1.19 + border: 2px solid orange; 1.20 + margin-bottom: 2px; 1.21 + } 1.22 + .flexContainer { 1.23 + background: teal; 1.24 + /* border-width is 0 by default; some sub-testcases will increase it. */ 1.25 + border: 0 dashed black; 1.26 + } 1.27 + </style> 1.28 + </head> 1.29 + <body> 1.30 + <!-- MARGIN LARGER THAN AVAILABLE HEIGHT --> 1.31 + <!-- =================================== --> 1.32 + <!-- margin-top is the available height: --> 1.33 + <div class="multicol"> 1.34 + <div class="flexContainer" style="height: 8px; 1.35 + margin-top: 10px"></div> 1.36 + </div> 1.37 + 1.38 + <!-- margin-top is larger than available height: --> 1.39 + <div class="multicol"> 1.40 + <div class="flexContainer" style="height: 8px; 1.41 + margin-top: 11px"></div> 1.42 + </div> 1.43 + 1.44 + <!-- margin-bottom is exactly the available height: --> 1.45 + <div class="multicol"> 1.46 + <div class="flexContainer" style="height: 8px; 1.47 + margin-bottom: 10px"></div> 1.48 + </div> 1.49 + 1.50 + <!-- margin-bottom is larger than available height: --> 1.51 + <div class="multicol"> 1.52 + <div class="flexContainer" style="height: 8px; 1.53 + margin-bottom: 11px"></div> 1.54 + </div> 1.55 + 1.56 + <!-- BORDER LARGER THAN AVAILABLE HEIGHT --> 1.57 + <!-- =================================== --> 1.58 + <!-- border-top-width is the available height: --> 1.59 + <div class="multicol"> 1.60 + <div class="flexContainer" style="height: 8px; 1.61 + border-top-width: 10px"></div> 1.62 + </div> 1.63 + 1.64 + <!-- border-top-width is larger than available height: --> 1.65 + <div class="multicol"> 1.66 + <div class="flexContainer" style="height: 8px; 1.67 + border-top-width: 11px"></div> 1.68 + </div> 1.69 + 1.70 + <!-- border-bottom-width is exactly the available height: --> 1.71 + <div class="multicol"> 1.72 + <div class="flexContainer" style="height: 8px; 1.73 + border-bottom-width: 10px"></div> 1.74 + </div> 1.75 + 1.76 + <!-- border-bottom-width is larger than available height: --> 1.77 + <div class="multicol"> 1.78 + <div class="flexContainer" style="height: 8px; 1.79 + border-bottom-width: 11px"></div> 1.80 + </div> 1.81 + 1.82 + <!-- PADDING LARGER THAN AVAILABLE HEIGHT --> 1.83 + <!-- ==================================== --> 1.84 + <!-- padding-top is the available height: --> 1.85 + <div class="multicol"> 1.86 + <div class="flexContainer" style="height: 8px; 1.87 + padding-top: 10px"></div> 1.88 + </div> 1.89 + 1.90 + <!-- padding-top is larger than available height: --> 1.91 + <div class="multicol"> 1.92 + <div class="flexContainer" style="height: 8px; 1.93 + padding-top: 11px"></div> 1.94 + </div> 1.95 + 1.96 + <!-- padding-bottom is exactly the available height: --> 1.97 + <div class="multicol"> 1.98 + <div class="flexContainer" style="height: 8px; 1.99 + padding-bottom: 10px"></div> 1.100 + </div> 1.101 + 1.102 + <!-- padding-bottom is larger than available height: --> 1.103 + <div class="multicol"> 1.104 + <div class="flexContainer" style="height: 8px; 1.105 + padding-bottom: 11px"></div> 1.106 + </div> 1.107 + 1.108 + <!-- BORDER+PADDING LARGER THAN AVAILABLE HEIGHT --> 1.109 + <!-- =========================================== --> 1.110 + <!-- border+padding-top is the available height: --> 1.111 + <div class="multicol"> 1.112 + <div class="flexContainer" style="height: 8px; 1.113 + border-top: 5px; 1.114 + padding-top: 5px"></div> 1.115 + </div> 1.116 + 1.117 + <!-- padding-top is larger than available height: --> 1.118 + <div class="multicol"> 1.119 + <div class="flexContainer" style="height: 8px; 1.120 + border-top: 6px; 1.121 + padding-top: 6px"></div> 1.122 + </div> 1.123 + 1.124 + <!-- padding-bottom is exactly the available height: --> 1.125 + <div class="multicol"> 1.126 + <div class="flexContainer" style="height: 8px; 1.127 + border-bottom: 5px; 1.128 + padding-bottom: 5px"></div> 1.129 + </div> 1.130 + 1.131 + <!-- padding-bottom is larger than available height: --> 1.132 + <div class="multicol"> 1.133 + <div class="flexContainer" style="height: 8px; 1.134 + border-bottom: 6px; 1.135 + padding-bottom: 6px"></div> 1.136 + </div> 1.137 + 1.138 + </body> 1.139 +</html>