gap-008-ref.rml 945 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. <rml>
  2. <head>
  3. <link type="text/rcss" href="/../Tests/Data/style.rcss"/>
  4. <title>CSS Flexbox Test: gap - row and column gap</title>
  5. <link href="https://test.csswg.org/suites/css-align-3_dev/nightly-unstable/xhtml1/reference/gap-008-ltr-ref.xht"
  6. rel="source"/>
  7. <link href="mailto:[email protected]" rel="author" title="Adam Argyle"/>
  8. <style>
  9. section {
  10. background-color: green;
  11. height: 100px;
  12. width: 400px;
  13. display: flex;
  14. flex-wrap: wrap;
  15. }
  16. section > div {
  17. background-color: grey;
  18. width: 190px;
  19. }
  20. section > div:nth-child(1),
  21. section > div:nth-child(3) {
  22. margin-right: 20px;
  23. }
  24. section > div:nth-child(3),
  25. section > div:nth-child(4) {
  26. margin-top: 40px;
  27. }
  28. </style>
  29. </head>
  30. <body>
  31. <p>
  32. Test passes if there are <strong>40px horizontal green lines and 20px vertical green lines between boxes</strong>.
  33. </p>
  34. <section>
  35. <div></div>
  36. <div></div>
  37. <div></div>
  38. <div></div>
  39. </section>
  40. </body>
  41. </rml>