flex_wrap_column_reverse.rml 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263
  1. <rml>
  2. <head>
  3. <link type="text/rcss" href="/../Tests/Data/style.rcss" />
  4. <title>CSS Test: flex container multiline wrapping in column-reverse direction</title>
  5. <link href="https://test.csswg.org/suites/css-flexbox-1_dev/nightly-unstable/xhtml1/multi-line-wrap-with-column-reverse.xht" rel="source" />
  6. <link href="mailto:[email protected]" rel="author" title="tmtysk" />
  7. <link href="mailto:[email protected]" rel="reviewer" title="Tab Atkins" />
  8. <link href="http://www.w3.org/TR/css-flexbox-1/#flex-wrap-property" rel="help" />
  9. <link href="http://www.w3.org/TR/css-flexbox-1/#flex-direction-property" rel="help" />
  10. <link href="reference/flex_wrap_column_reverse-ref.rml" rel="match" />
  11. <meta content="This test check that a flex container wraps blocks multiline in column-reverse direction." name="assert" />
  12. <style>
  13. *, p { margin:0; padding:0; font-size:100%; line-height:1; }
  14. #test {
  15. display: flex;
  16. flex-direction: column-reverse;
  17. flex-wrap: wrap;
  18. height: 300dp;
  19. }
  20. p {
  21. margin-top: 10dp;
  22. margin-right: 10dp;
  23. background-color: #eee;
  24. }
  25. #col1-row1 {
  26. height: 90dp;
  27. }
  28. #col1-row2 {
  29. height: 90dp;
  30. }
  31. #col1-row3 {
  32. height: 90dp;
  33. }
  34. #col2-row1 {
  35. height: 140dp;
  36. }
  37. #col2-row2 {
  38. height: 140dp;
  39. }
  40. #col3-row1 {
  41. height: 290dp;
  42. }
  43. </style>
  44. </head>
  45. <body>
  46. <div id="test">
  47. <p id="col1-row3">1-3</p>
  48. <p id="col1-row2">1-2</p>
  49. <p id="col1-row1">1-1</p>
  50. <p id="col2-row2">2-2</p>
  51. <p id="col2-row1">2-1</p>
  52. <p id="col3-row1">3-1</p>
  53. </div>
  54. </body>
  55. </rml>