Thu, 15 Jan 2015 21:13:52 +0100
Remove forgotten relic of ABI crash risk averse overloaded method change.
michael@0 | 1 | <!DOCTYPE html> |
michael@0 | 2 | <!-- |
michael@0 | 3 | Any copyright is dedicated to the Public Domain. |
michael@0 | 4 | http://creativecommons.org/publicdomain/zero/1.0/ |
michael@0 | 5 | --> |
michael@0 | 6 | <html> |
michael@0 | 7 | <head> |
michael@0 | 8 | <title>CSS Test: Testing that strut formation (from visibility:collapse) happens *after* lines have been stretched</title> |
michael@0 | 9 | <link rel="author" title="Daniel Holbert" href="mailto:dholbert@mozilla.com"> |
michael@0 | 10 | <link rel="help" href="http://www.w3.org/TR/css3-flexbox/#algo-visibility"> |
michael@0 | 11 | <link rel="match" href="flexbox-collapsed-item-horiz-3-ref.html"> |
michael@0 | 12 | <meta charset="utf-8"> |
michael@0 | 13 | <style> |
michael@0 | 14 | .flexContainer { |
michael@0 | 15 | display: flex; |
michael@0 | 16 | flex-wrap: wrap; |
michael@0 | 17 | align-content: stretch; /* Initial value; just here for emphasis */ |
michael@0 | 18 | width: 25px; |
michael@0 | 19 | height: 60px; |
michael@0 | 20 | background: yellow; |
michael@0 | 21 | border: 1px dotted black; |
michael@0 | 22 | float: left; |
michael@0 | 23 | margin: 5px; |
michael@0 | 24 | } |
michael@0 | 25 | .collapsedItem { |
michael@0 | 26 | visibility: collapse; |
michael@0 | 27 | width: 10px; |
michael@0 | 28 | } |
michael@0 | 29 | .shortItem { |
michael@0 | 30 | width: 25px; |
michael@0 | 31 | height: 10px; |
michael@0 | 32 | background: purple; |
michael@0 | 33 | } |
michael@0 | 34 | .tallItem { |
michael@0 | 35 | width: 10px; |
michael@0 | 36 | height: 30px; |
michael@0 | 37 | background: olive; |
michael@0 | 38 | } |
michael@0 | 39 | </style> |
michael@0 | 40 | </head> |
michael@0 | 41 | <body> |
michael@0 | 42 | <!-- In this testcase, the first flex line initially has a cross-size of |
michael@0 | 43 | 10px, and the second flex line has a cross-size of 30px. Both lines are |
michael@0 | 44 | stretched by 10px each (to hit the container's total cross-size, 60px). |
michael@0 | 45 | Then, we handle "visibility:collapse" and convert the collapsed item |
michael@0 | 46 | into a strut with the second line's stretched cross-size (40px), and we |
michael@0 | 47 | restart flex layout. This strut then ends up in the *first* line (since |
michael@0 | 48 | it has 0 main-size), which means both flex lines end up being 40px tall. |
michael@0 | 49 | --> |
michael@0 | 50 | <div class="flexContainer"> |
michael@0 | 51 | <div class="shortItem"></div> |
michael@0 | 52 | <div class="collapsedItem"></div> |
michael@0 | 53 | <div class="tallItem"></div> |
michael@0 | 54 | </div> |
michael@0 | 55 | </body> |
michael@0 | 56 | </html> |