Thu, 15 Jan 2015 15:55:04 +0100
Back out 97036ab72558 which inappropriately compared turds to third parties.
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 | This test verifies that 'float' on a grandchild of a flex container _will_ |
michael@0 | 8 | cause the element to be floated. |
michael@0 | 9 | |
michael@0 | 10 | This differs from the "2a" variant in that the flex items are <div>s |
michael@0 | 11 | rather than <span>s (though that shouldn't matter, because <span> as a |
michael@0 | 12 | flex item should become "display:block"). |
michael@0 | 13 | --> |
michael@0 | 14 | <html xmlns="http://www.w3.org/1999/xhtml"> |
michael@0 | 15 | <head> |
michael@0 | 16 | <style> |
michael@0 | 17 | div.flexbox { |
michael@0 | 18 | display: flex; |
michael@0 | 19 | font-family: sans-serif; |
michael@0 | 20 | width: 400px; |
michael@0 | 21 | margin-bottom: 2px; |
michael@0 | 22 | background: lightgreen; |
michael@0 | 23 | justify-content: space-around; |
michael@0 | 24 | } |
michael@0 | 25 | </style> |
michael@0 | 26 | </head> |
michael@0 | 27 | <body> |
michael@0 | 28 | <!-- These cases have a floated span as a grandchild of the flex container. |
michael@0 | 29 | The span should float within its flex item. --> |
michael@0 | 30 | <div class="flexbox"> |
michael@0 | 31 | <div>aaa<span style="float: left">lll</span>bbb</div> |
michael@0 | 32 | </div> |
michael@0 | 33 | <div class="flexbox"> |
michael@0 | 34 | <div>aaa<span style="float: right">rrr</span>bbb</div> |
michael@0 | 35 | </div> |
michael@0 | 36 | |
michael@0 | 37 | <!-- These cases have a floated div as a grandchild of the flex container. |
michael@0 | 38 | The div should float within its flex item. --> |
michael@0 | 39 | <div class="flexbox"> |
michael@0 | 40 | <div>aaa<div style="float: left">lll</div>bbb</div> |
michael@0 | 41 | </div> |
michael@0 | 42 | <div class="flexbox"> |
michael@0 | 43 | <div>aaa<div style="float: right">rrr</div>bbb</div> |
michael@0 | 44 | </div> |
michael@0 | 45 | </body> |
michael@0 | 46 | </html> |