OLD | NEW |
(Empty) | |
| 1 <?xml version="1.0" encoding="UTF-8"?> |
| 2 <!-- |
| 3 Any copyright is dedicated to the Public Domain. |
| 4 http://creativecommons.org/publicdomain/zero/1.0/ |
| 5 --> |
| 6 <!-- Testcase with borders on flex items. --> |
| 7 <html xmlns="http://www.w3.org/1999/xhtml"> |
| 8 <head> |
| 9 <title>CSS Test: Testing borders on flex items in a horizontal flex containe
r</title> |
| 10 <link rel="author" title="Daniel Holbert" href="mailto:dholbert@mozilla.com"
/> |
| 11 <link rel="help" href="http://www.w3.org/TR/css-flexbox-1/#layout-algorithm"
/> |
| 12 <link rel="match" href="flexbox-mbp-horiz-001-ref.xhtml"/> |
| 13 <style> |
| 14 div { height: 100px; border: 0; } |
| 15 div.flexbox { |
| 16 width: 200px; |
| 17 font-size: 10px; |
| 18 display: flex; |
| 19 } |
| 20 div.a { |
| 21 flex: 1 0 24px; |
| 22 background: lightgreen; |
| 23 border-style: dotted; |
| 24 border-left-width: 2px; |
| 25 border-right-width: 4px; |
| 26 } |
| 27 div.b { |
| 28 flex: 2 0 10px; |
| 29 background: yellow; |
| 30 border-style: dashed; |
| 31 border-left-width: 7px; |
| 32 border-right-width: 3px; |
| 33 } |
| 34 div.c { |
| 35 flex: 3 0 40px; |
| 36 background: orange; |
| 37 } |
| 38 div.flexNone { |
| 39 flex: none; |
| 40 background: pink; |
| 41 } |
| 42 div.flexBasis { |
| 43 flex: 0 0 20px; |
| 44 background: gray; |
| 45 } |
| 46 div.spacer { |
| 47 display: inline-block; |
| 48 width: 15px; |
| 49 height: 15px; |
| 50 background: purple; |
| 51 } |
| 52 </style> |
| 53 </head> |
| 54 <body> |
| 55 <div class="flexbox"><div class="a"></div><div class="b"/></div> |
| 56 <div class="flexbox"><div class="a"/><div class="c"/></div> |
| 57 <div class="flexbox"><div class="a"/> |
| 58 <div class="flexNone"><div class="spacer"/></div> |
| 59 </div> |
| 60 <div class="flexbox"><div class="b"/><div class="c"/></div> |
| 61 <div class="flexbox"><div class="b"/> |
| 62 <div class="flexNone"><div class="spacer"/><div class="spacer"/></div> |
| 63 </div> |
| 64 |
| 65 <div class="flexbox"> |
| 66 <div class="a"/><div class="b"/><div class="flexBasis"/><div class="c"/> |
| 67 </div> |
| 68 </body> |
| 69 </html> |
| 70 |
OLD | NEW |