gap-009-ref.rml 983 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. <rml>
  2. <head>
  3. <link type="text/rcss" href="/../Tests/Data/style.rcss"/>
  4. <title>CSS Flexbox Test: gap - mixed units</title>
  5. <link href="https://test.csswg.org/suites/css-align-3_dev/nightly-unstable/xhtml1/reference/gap-009-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: 30rem;
  13. display: flex;
  14. flex-wrap: wrap;
  15. }
  16. section > div {
  17. background-color: grey;
  18. }
  19. section > div {
  20. width: 14.5rem;
  21. }
  22. section > div:nth-child(1),
  23. section > div:nth-child(3) {
  24. margin-right: 1rem;
  25. }
  26. section > div:nth-child(3),
  27. section > div:nth-child(4) {
  28. margin-top: 50px; /* half block size */
  29. }
  30. </style>
  31. </head>
  32. <body>
  33. <p>
  34. Test passes if there are <strong> 50% horizontal green line and 1rem vertical green line between boxes</strong>.
  35. </p>
  36. <section>
  37. <div></div>
  38. <div></div>
  39. <div></div>
  40. <div></div>
  41. </section>
  42. </body>
  43. </rml>