gap-009.rml 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839
  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/gap-009-ltr.xht" rel="source"/>
  6. <link href="mailto:[email protected]" rel="author" title="Adam Argyle"/>
  7. <link href="https://www.w3.org/TR/css-grid-1/#gutters" rel="help"/>
  8. <link href="https://www.w3.org/TR/css-align-3/#column-row-gap" rel="help"/>
  9. <link href="https://www.w3.org/TR/css-align-3/#gap-legacy" rel="help"/>
  10. <link href="reference/gap-009-ref.rml" rel="match"/>
  11. <meta content="The 'gap' property enables putting space exclusively between items" name="assert"/>
  12. <style>
  13. section {
  14. background-color: green;
  15. height: 100px;
  16. width: 30rem;
  17. display: flex;
  18. gap: 50% 1rem;
  19. flex-wrap: wrap;
  20. }
  21. section > div {
  22. background-color: grey;
  23. width: 14.5rem;
  24. }
  25. </style>
  26. </head>
  27. <body>
  28. <p>
  29. Test passes if there are <strong> 50% horizontal green line and 1rem vertical green line between boxes</strong>.
  30. </p>
  31. <section>
  32. <div></div>
  33. <div></div>
  34. <div></div>
  35. <div></div>
  36. </section>
  37. </body>
  38. </rml>