flexbox-empty-2a.html 4.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139
  1. <!DOCTYPE html>
  2. <!-- Any copyright is dedicated to the Public Domain.
  3. http://creativecommons.org/publicdomain/zero/1.0/ -->
  4. <!-- Testcase for how we fragment an empty fixed-height flex container, with
  5. margin/border/padding that are larger than the available height,
  6. and with the flex container having "flex-direction: row".
  7. -->
  8. <html>
  9. <head>
  10. <style>
  11. .multicol {
  12. height: 10px;
  13. width: 100px;
  14. -moz-column-width: 20px;
  15. -moz-column-fill: auto;
  16. border: 2px solid orange;
  17. margin-bottom: 2px;
  18. }
  19. .flexContainer {
  20. display: flex;
  21. flex-direction: row;
  22. background: teal;
  23. /* border-width is 0 by default; some sub-testcases will increase it. */
  24. border: 0 dashed black;
  25. }
  26. </style>
  27. </head>
  28. <body>
  29. <!-- MARGIN LARGER THAN AVAILABLE HEIGHT -->
  30. <!-- =================================== -->
  31. <!-- margin-top is the available height: -->
  32. <div class="multicol">
  33. <div class="flexContainer" style="height: 8px;
  34. margin-top: 10px"></div>
  35. </div>
  36. <!-- margin-top is larger than available height: -->
  37. <div class="multicol">
  38. <div class="flexContainer" style="height: 8px;
  39. margin-top: 11px"></div>
  40. </div>
  41. <!-- margin-bottom is exactly the available height: -->
  42. <div class="multicol">
  43. <div class="flexContainer" style="height: 8px;
  44. margin-bottom: 10px"></div>
  45. </div>
  46. <!-- margin-bottom is larger than available height: -->
  47. <div class="multicol">
  48. <div class="flexContainer" style="height: 8px;
  49. margin-bottom: 11px"></div>
  50. </div>
  51. <!-- BORDER LARGER THAN AVAILABLE HEIGHT -->
  52. <!-- =================================== -->
  53. <!-- border-top-width is the available height: -->
  54. <div class="multicol">
  55. <div class="flexContainer" style="height: 8px;
  56. border-top-width: 10px"></div>
  57. </div>
  58. <!-- border-top-width is larger than available height: -->
  59. <div class="multicol">
  60. <div class="flexContainer" style="height: 8px;
  61. border-top-width: 11px"></div>
  62. </div>
  63. <!-- border-bottom-width is exactly the available height: -->
  64. <div class="multicol">
  65. <div class="flexContainer" style="height: 8px;
  66. border-bottom-width: 10px"></div>
  67. </div>
  68. <!-- border-bottom-width is larger than available height: -->
  69. <div class="multicol">
  70. <div class="flexContainer" style="height: 8px;
  71. border-bottom-width: 11px"></div>
  72. </div>
  73. <!-- PADDING LARGER THAN AVAILABLE HEIGHT -->
  74. <!-- ==================================== -->
  75. <!-- padding-top is the available height: -->
  76. <div class="multicol">
  77. <div class="flexContainer" style="height: 8px;
  78. padding-top: 10px"></div>
  79. </div>
  80. <!-- padding-top is larger than available height: -->
  81. <div class="multicol">
  82. <div class="flexContainer" style="height: 8px;
  83. padding-top: 11px"></div>
  84. </div>
  85. <!-- padding-bottom is exactly the available height: -->
  86. <div class="multicol">
  87. <div class="flexContainer" style="height: 8px;
  88. padding-bottom: 10px"></div>
  89. </div>
  90. <!-- padding-bottom is larger than available height: -->
  91. <div class="multicol">
  92. <div class="flexContainer" style="height: 8px;
  93. padding-bottom: 11px"></div>
  94. </div>
  95. <!-- BORDER+PADDING LARGER THAN AVAILABLE HEIGHT -->
  96. <!-- =========================================== -->
  97. <!-- border+padding-top is the available height: -->
  98. <div class="multicol">
  99. <div class="flexContainer" style="height: 8px;
  100. border-top: 5px;
  101. padding-top: 5px"></div>
  102. </div>
  103. <!-- padding-top is larger than available height: -->
  104. <div class="multicol">
  105. <div class="flexContainer" style="height: 8px;
  106. border-top: 6px;
  107. padding-top: 6px"></div>
  108. </div>
  109. <!-- padding-bottom is exactly the available height: -->
  110. <div class="multicol">
  111. <div class="flexContainer" style="height: 8px;
  112. border-bottom: 5px;
  113. padding-bottom: 5px"></div>
  114. </div>
  115. <!-- padding-bottom is larger than available height: -->
  116. <div class="multicol">
  117. <div class="flexContainer" style="height: 8px;
  118. border-bottom: 6px;
  119. padding-bottom: 6px"></div>
  120. </div>
  121. </body>
  122. </html>