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 | <!-- Testcase with flex items containing overlapping content, to test |
michael@0 | 7 | their paint-order. --> |
michael@0 | 8 | <html xmlns="http://www.w3.org/1999/xhtml"> |
michael@0 | 9 | <head> |
michael@0 | 10 | <title>CSS Test: Testing the paint-order of overlapping flex items, with varying tweaks on the container</title> |
michael@0 | 11 | <link rel="author" title="Daniel Holbert" href="mailto:dholbert@mozilla.com"/> |
michael@0 | 12 | <link rel="help" href="http://www.w3.org/TR/css3-flexbox/#painting"/> |
michael@0 | 13 | <link rel="match" href="flexbox-paint-ordering-1-ref.xhtml"/> |
michael@0 | 14 | <style> |
michael@0 | 15 | body { |
michael@0 | 16 | line-height: 0; |
michael@0 | 17 | } |
michael@0 | 18 | .container { |
michael@0 | 19 | width: 40px; |
michael@0 | 20 | height: 14px; |
michael@0 | 21 | border: 2px solid green; |
michael@0 | 22 | margin-bottom: 2px; |
michael@0 | 23 | } |
michael@0 | 24 | .a { |
michael@0 | 25 | width: 16px; |
michael@0 | 26 | height: 10px; |
michael@0 | 27 | background: blue; |
michael@0 | 28 | min-width: 0; |
michael@0 | 29 | border: 2px solid lightblue; |
michael@0 | 30 | } |
michael@0 | 31 | .b { |
michael@0 | 32 | width: 16px; |
michael@0 | 33 | height: 10px; |
michael@0 | 34 | background: purple; |
michael@0 | 35 | min-width: 0; |
michael@0 | 36 | border: 2px solid slateblue; |
michael@0 | 37 | } |
michael@0 | 38 | .aKid { |
michael@0 | 39 | margin-left: 10px; |
michael@0 | 40 | margin-top: 2px; |
michael@0 | 41 | width: 16px; |
michael@0 | 42 | height: 6px; |
michael@0 | 43 | background: yellow; |
michael@0 | 44 | border: 1px solid black; |
michael@0 | 45 | } |
michael@0 | 46 | </style> |
michael@0 | 47 | </head> |
michael@0 | 48 | <body> |
michael@0 | 49 | <!-- inline-level flex container --> |
michael@0 | 50 | <div class="container" style="display: inline-flex"> |
michael@0 | 51 | <div class="a"><div class="aKid"/></div> |
michael@0 | 52 | <div class="b"></div> |
michael@0 | 53 | </div> |
michael@0 | 54 | |
michael@0 | 55 | <!-- block-level flex container --> |
michael@0 | 56 | <div class="container" style="display: flex"> |
michael@0 | 57 | <div class="a"><div class="aKid"/></div> |
michael@0 | 58 | <div class="b"></div> |
michael@0 | 59 | </div> |
michael@0 | 60 | |
michael@0 | 61 | <!-- floated flex container --> |
michael@0 | 62 | <div class="container" style="display: flex; float: left"> |
michael@0 | 63 | <div class="a"><div class="aKid"/></div> |
michael@0 | 64 | <div class="b"></div> |
michael@0 | 65 | </div> |
michael@0 | 66 | <!-- Helper-div to clear floats: --> |
michael@0 | 67 | <div style="clear: both"/> |
michael@0 | 68 | |
michael@0 | 69 | <!-- relatively-positioned flex container --> |
michael@0 | 70 | <div class="container" style="display: flex; position: relative"> |
michael@0 | 71 | <div class="a"><div class="aKid"/></div> |
michael@0 | 72 | <div class="b"></div> |
michael@0 | 73 | </div> |
michael@0 | 74 | |
michael@0 | 75 | <!-- absolutely-positioned flex container --> |
michael@0 | 76 | <div class="container" style="display: flex; position: absolute"> |
michael@0 | 77 | <div class="a"><div class="aKid"/></div> |
michael@0 | 78 | <div class="b"></div> |
michael@0 | 79 | </div> |
michael@0 | 80 | <!--- Spacer div, since abspos div doesn't set aside space for itself --> |
michael@0 | 81 | <div style="height: 20px"/> |
michael@0 | 82 | |
michael@0 | 83 | <!-- fixed-position flex container --> |
michael@0 | 84 | <div class="container" style="display: flex; position: fixed"> |
michael@0 | 85 | <div class="a"><div class="aKid"/></div> |
michael@0 | 86 | <div class="b"></div> |
michael@0 | 87 | </div> |
michael@0 | 88 | |
michael@0 | 89 | </body> |
michael@0 | 90 | </html> |