OLD | NEW |
(Empty) | |
| 1 <!DOCTYPE html> |
| 2 <html> |
| 3 <head> |
| 4 <title>CSS Reftest Reference: Flexbox direction and wrapping</ti
tle> |
| 5 <link rel="author" title="Gavin Elster" href="mailto:gavin.elster@me
.com"> |
| 6 <link rel="reviewer" title="Elika J. Etemad" href="http://fantasai.i
nkedblade.net/contact"> |
| 7 <meta name="flags" content=""> |
| 8 <style> |
| 9 |
| 10 /* Ref test styles */ |
| 11 |
| 12 .flex-wrapper div{ |
| 13 display: inline-block; |
| 14 } |
| 15 |
| 16 |
| 17 /* Test-series styles */ |
| 18 |
| 19 .flex-wrapper { |
| 20 width: 120px; |
| 21 height: 120px; |
| 22 |
| 23 /* should only display on error */ |
| 24 background: red; |
| 25 |
| 26 /* Enforce writing mode */ |
| 27 direction: ltr; |
| 28 writing-mode: horizontal-tb; |
| 29 } |
| 30 |
| 31 .flex-wrapper div { |
| 32 width: 38px; |
| 33 height: 38px; |
| 34 |
| 35 background: green; |
| 36 border: 1px solid limegreen; |
| 37 |
| 38 color: white; |
| 39 line-height: 40px; |
| 40 text-align: center; |
| 41 vertical-align: middle; |
| 42 } |
| 43 </style> |
| 44 </head> |
| 45 <body> |
| 46 <p>The test passes if there is a 3x3 grid of green squares, numb
ered 1-9 left-to-right and top-to-bottom, and there is no red.</p> |
| 47 <div class="flex-wrapper"> |
| 48 <div>1</div><div>2</div><div>3</div><div>4</div><div>5</
div><div>6</div><div>7</div><div>8</div><div>9</div> |
| 49 </div> |
| 50 </body> |
| 51 </html> |
OLD | NEW |