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