Thu, 15 Jan 2015 21:13:52 +0100
Remove forgotten relic of ABI crash risk averse overloaded method change.
michael@0 | 1 | <?xml version="1.0" encoding="UTF-8"?> |
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 | <!-- |
michael@0 | 7 | Testcase with table parts inside of a flex container, triggering |
michael@0 | 8 | table-fixup. We use justify-content:space-between to stick packing |
michael@0 | 9 | space between flex items, so that we can verify that e.g. a contiguous |
michael@0 | 10 | run of <td>s will end up in the same flex item (wrapped in a table). |
michael@0 | 11 | --> |
michael@0 | 12 | <html xmlns="http://www.w3.org/1999/xhtml"> |
michael@0 | 13 | <head> |
michael@0 | 14 | <title>CSS Test: Testing that table cells in a flex container get an anonymous table wrapper that forms the flex item</title> |
michael@0 | 15 | <link rel="author" title="Daniel Holbert" href="mailto:dholbert@mozilla.com"/> |
michael@0 | 16 | <link rel="help" href="http://www.w3.org/TR/css3-flexbox/#flex-items"/> |
michael@0 | 17 | <link rel="match" href="flexbox-table-fixup-1-ref.xhtml"/> |
michael@0 | 18 | <style> |
michael@0 | 19 | div.flexbox { |
michael@0 | 20 | border: 1px dashed blue; |
michael@0 | 21 | width: 200px; |
michael@0 | 22 | display: flex; |
michael@0 | 23 | justify-content: space-around; |
michael@0 | 24 | } |
michael@0 | 25 | |
michael@0 | 26 | <!-- NOTE: table-fixup pads each td element by 1px on each side. We |
michael@0 | 27 | override that for top & bottom, for simplicity. So the td makes us |
michael@0 | 28 | generate a box that's 2px wider than its contents. --> |
michael@0 | 29 | td { |
michael@0 | 30 | padding-top: 0px; |
michael@0 | 31 | padding-bottom: 0px; |
michael@0 | 32 | } |
michael@0 | 33 | |
michael@0 | 34 | .a { |
michael@0 | 35 | background: lightgreen; |
michael@0 | 36 | width: 48px; |
michael@0 | 37 | } |
michael@0 | 38 | |
michael@0 | 39 | .b { |
michael@0 | 40 | background: yellow; |
michael@0 | 41 | width: 48px; |
michael@0 | 42 | } |
michael@0 | 43 | |
michael@0 | 44 | .c { |
michael@0 | 45 | background: pink; |
michael@0 | 46 | width: 48px; |
michael@0 | 47 | } |
michael@0 | 48 | </style> |
michael@0 | 49 | </head> |
michael@0 | 50 | <body> |
michael@0 | 51 | <!-- Just 2 adjacent table cells (they end up in the same table) --> |
michael@0 | 52 | <div class="flexbox" |
michael@0 | 53 | ><td class="a">cell1</td><td class="b">cell2</td></div> |
michael@0 | 54 | |
michael@0 | 55 | <!-- Table cell followed by tbody (they end up in the same table) --> |
michael@0 | 56 | <div class="flexbox" |
michael@0 | 57 | ><td class="a">cell1</td><tbody class="b">t</tbody></div> |
michael@0 | 58 | |
michael@0 | 59 | <!-- Empty table cell (ends up occupying 2px of width), followed by div, |
michael@0 | 60 | followed by nonempty table cell. (3 flex items). --> |
michael@0 | 61 | <!-- Note: We use "space-between" (instead of "space-around") here because |
michael@0 | 62 | it makes the math cleaner. (100px split 2 ways instead of 3 ways.) --> |
michael@0 | 63 | <div class="flexbox" style="justify-content: space-between" |
michael@0 | 64 | ><td></td><div class="c">div</div><td class="b">cell1</td></div> |
michael@0 | 65 | </body> |
michael@0 | 66 | </html> |