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 | <!-- Reference case - identical to the testcase, but with with the flex items' |
michael@0 | 7 | vertical margin and padding values set to 0 by default, and then set to |
michael@0 | 8 | specific pixel values for the items that have a 50px percent-basis. |
michael@0 | 9 | --> |
michael@0 | 10 | <html xmlns="http://www.w3.org/1999/xhtml"> |
michael@0 | 11 | <head> |
michael@0 | 12 | <title>CSS Reftest Reference</title> |
michael@0 | 13 | <link rel="author" title="Daniel Holbert" href="mailto:dholbert@mozilla.com"/> |
michael@0 | 14 | <style> |
michael@0 | 15 | div { border: 0; } |
michael@0 | 16 | div.flexbox { |
michael@0 | 17 | width: 200px; |
michael@0 | 18 | display: flex; |
michael@0 | 19 | margin-bottom: 2px; |
michael@0 | 20 | border: 1px dotted black; |
michael@0 | 21 | } |
michael@0 | 22 | div.height50 { height: 50px; } |
michael@0 | 23 | |
michael@0 | 24 | .marginA { margin: 0 8% 0 4%; } |
michael@0 | 25 | .marginB { margin: 0 10% 0 14%; } |
michael@0 | 26 | .paddingA { padding: 0 6% 0 2%; } |
michael@0 | 27 | .paddingB { padding: 0 8% 0 12%; } |
michael@0 | 28 | |
michael@0 | 29 | div.height50 > .marginA { |
michael@0 | 30 | margin-top: 5px; |
michael@0 | 31 | margin-bottom: 3px; |
michael@0 | 32 | } |
michael@0 | 33 | div.height50 > .marginB { |
michael@0 | 34 | margin-top: 4px; |
michael@0 | 35 | margin-bottom: 6px; |
michael@0 | 36 | } |
michael@0 | 37 | div.height50 > .paddingA { |
michael@0 | 38 | padding-top: 4px; |
michael@0 | 39 | padding-bottom: 2px; |
michael@0 | 40 | } |
michael@0 | 41 | div.height50 > .paddingB { |
michael@0 | 42 | padding-top: 3px; |
michael@0 | 43 | padding-bottom: 5px; |
michael@0 | 44 | } |
michael@0 | 45 | |
michael@0 | 46 | div.child1 { |
michael@0 | 47 | flex: none; |
michael@0 | 48 | width: 10px; |
michael@0 | 49 | height: 10px; |
michael@0 | 50 | background: lightgreen; |
michael@0 | 51 | } |
michael@0 | 52 | div.child2 { |
michael@0 | 53 | flex: none; |
michael@0 | 54 | width: 10px; |
michael@0 | 55 | height: 10px; |
michael@0 | 56 | background: purple; |
michael@0 | 57 | } |
michael@0 | 58 | |
michael@0 | 59 | div.filler { |
michael@0 | 60 | /* Filler-div to fill up content-box and make padding easier to see. */ |
michael@0 | 61 | height: 10px; |
michael@0 | 62 | width: 100%; |
michael@0 | 63 | background: lightgrey; |
michael@0 | 64 | } |
michael@0 | 65 | |
michael@0 | 66 | </style> |
michael@0 | 67 | </head> |
michael@0 | 68 | <body> |
michael@0 | 69 | <div class="flexbox" |
michael@0 | 70 | ><div class="child1 paddingA"><div class="filler"/></div |
michael@0 | 71 | ><div class="child2 paddingB"><div class="filler"/></div |
michael@0 | 72 | ><div class="child1 marginA"></div |
michael@0 | 73 | ><div class="child2 marginB"></div |
michael@0 | 74 | ></div> |
michael@0 | 75 | |
michael@0 | 76 | <div class="flexbox height50" |
michael@0 | 77 | ><div class="child1 paddingA"><div class="filler"/></div |
michael@0 | 78 | ><div class="child2 paddingB"><div class="filler"/></div |
michael@0 | 79 | ><div class="child1 marginA"></div |
michael@0 | 80 | ><div class="child2 marginB"></div |
michael@0 | 81 | ></div> |
michael@0 | 82 | |
michael@0 | 83 | <div class="flexbox height50" style="align-items: flex-end" |
michael@0 | 84 | ><div class="child1 paddingA"><div class="filler"/></div |
michael@0 | 85 | ><div class="child2 paddingB"><div class="filler"/></div |
michael@0 | 86 | ><div class="child1 marginA"></div |
michael@0 | 87 | ><div class="child2 marginB"></div |
michael@0 | 88 | ></div> |
michael@0 | 89 | |
michael@0 | 90 | <div class="flexbox height50" |
michael@0 | 91 | ><div class="child1 paddingA marginA"><div class="filler"/></div |
michael@0 | 92 | ><div class="child2 paddingB marginB"><div class="filler"/></div |
michael@0 | 93 | ></div> |
michael@0 | 94 | </body> |
michael@0 | 95 | </html> |