Thu, 15 Jan 2015 21:03:48 +0100
Integrate friendly tips from Tor colleagues to make (or not) 4.5 alpha 3;
This includes removal of overloaded (but unused) methods, and addition of
a overlooked call to DataStruct::SetData(nsISupports, uint32_t, bool.)
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 absolutely positioned children of a flex container. |
michael@0 | 8 | In this testcase, we simply specify "position: absolute" without |
michael@0 | 9 | actually doing any positioning, to test the "static position" of these |
michael@0 | 10 | children. |
michael@0 | 11 | --> |
michael@0 | 12 | <html xmlns="http://www.w3.org/1999/xhtml"> |
michael@0 | 13 | <head> |
michael@0 | 14 | <style> |
michael@0 | 15 | div.containingBlock { |
michael@0 | 16 | top: 15px; |
michael@0 | 17 | left: 20px; |
michael@0 | 18 | height: 400px; |
michael@0 | 19 | position: absolute; |
michael@0 | 20 | border: 2px dashed purple; |
michael@0 | 21 | } |
michael@0 | 22 | .abspos { |
michael@0 | 23 | position: absolute; |
michael@0 | 24 | border: 2px dotted black; |
michael@0 | 25 | } |
michael@0 | 26 | div.flexbox { |
michael@0 | 27 | width: 200px; |
michael@0 | 28 | height: 100px; |
michael@0 | 29 | display: flex; |
michael@0 | 30 | } |
michael@0 | 31 | div.a { |
michael@0 | 32 | flex: 1 0 auto; |
michael@0 | 33 | width: 30px; |
michael@0 | 34 | height: 100px; |
michael@0 | 35 | background: lightgreen; |
michael@0 | 36 | } |
michael@0 | 37 | div.b { |
michael@0 | 38 | flex: 2 0 auto; |
michael@0 | 39 | width: 20px; |
michael@0 | 40 | height: 100px; |
michael@0 | 41 | background: yellow; |
michael@0 | 42 | } |
michael@0 | 43 | div.inflex { |
michael@0 | 44 | flex: none; |
michael@0 | 45 | width: 20px; |
michael@0 | 46 | height: 100px; |
michael@0 | 47 | background: gray; |
michael@0 | 48 | } |
michael@0 | 49 | div.noFlexFn { |
michael@0 | 50 | width: 15px; |
michael@0 | 51 | height: 15px; |
michael@0 | 52 | background: teal; |
michael@0 | 53 | } |
michael@0 | 54 | </style> |
michael@0 | 55 | </head> |
michael@0 | 56 | <body> |
michael@0 | 57 | <div class="containingBlock"> |
michael@0 | 58 | <!-- First child abspos: --> |
michael@0 | 59 | <div class="flexbox"><div class="a abspos"/><div class="b"/></div> |
michael@0 | 60 | <!-- Second child abspos: --> |
michael@0 | 61 | <div class="flexbox"><div class="a"/><div class="b abspos"/></div> |
michael@0 | 62 | <!-- Middle child abspos: --> |
michael@0 | 63 | <div class="flexbox" |
michael@0 | 64 | ><div class="a"/><div class="inflex abspos"/><div class="b"/></div> |
michael@0 | 65 | <!-- Third child abspos, w/ inflexible items & justify-content: space-around: --> |
michael@0 | 66 | <div class="flexbox" style="justify-content: space-around" |
michael@0 | 67 | ><div class="inflex"/><div class="inflex"/><div class="inflex" |
michael@0 | 68 | /><div class="noFlexFn abspos"/><div class="inflex"/></div> |
michael@0 | 69 | </div> |
michael@0 | 70 | </body> |
michael@0 | 71 | </html> |