gap-002.rml 967 B

1234567891011121314151617181920212223242526272829303132333435
  1. <rml>
  2. <head>
  3. <link type="text/rcss" href="/../Tests/Data/style.rcss"/>
  4. <title>CSS Flexbox Test: gap - vertical</title>
  5. <link href="https://test.csswg.org/suites/css-align-3_dev/nightly-unstable/xhtml1/gap-002-ltr.xht" rel="source"/>
  6. <link href="mailto:[email protected]" rel="author" title="Adam Argyle"/>
  7. <link href="https://www.w3.org/TR/css-align-3/#gaps" rel="help" title="The 'gap' property"/>
  8. <link href="reference/gap-002-ref.rml" rel="match"/>
  9. <meta content="The 'gap' property enables putting space exclusively between items" name="assert"/>
  10. <style>
  11. section {
  12. background-color: green;
  13. width: 200px;
  14. height: 400px;
  15. display: flex;
  16. flex-direction: column;
  17. gap: 20px;
  18. }
  19. section > div {
  20. background-color: grey;
  21. flex: 1 1 auto;
  22. }
  23. </style>
  24. </head>
  25. <body>
  26. <p>Test passes if there is <strong>a green horizontal line between boxes</strong>.</p>
  27. <section>
  28. <div></div>
  29. <div></div>
  30. <div></div>
  31. </section>
  32. <hr/>
  33. </body>
  34. </rml>