gap-003-ref.rml 895 B

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. <rml>
  2. <head>
  3. <link type="text/rcss" href="/../Tests/Data/style.rcss"/>
  4. <title>CSS Flexbox Test: gap - rows and columns</title>
  5. <link href="https://test.csswg.org/suites/css-align-3_dev/nightly-unstable/xhtml1/reference/gap-003-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: 200px;
  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: 20px;
  27. }
  28. </style>
  29. </head>
  30. <body>
  31. <p>Test passes if there are <strong> green lines between boxes</strong>.</p>
  32. <section>
  33. <div></div>
  34. <div></div>
  35. <div></div>
  36. <div></div>
  37. </section>
  38. </body>
  39. </rml>