gap-006.rml 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. <rml>
  2. <head>
  3. <link type="text/rcss" href="/../Tests/Data/style.rcss"/>
  4. <title>CSS Flexbox Test: gap - wrap horizontal</title>
  5. <link href="https://test.csswg.org/suites/css-align-3_dev/nightly-unstable/xhtml1/gap-006-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-006-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: 200px;
  17. display: inline-flex;
  18. flex-wrap: wrap;
  19. gap: 20px;
  20. }
  21. section > div {
  22. background-color: grey;
  23. color: white;
  24. height: 20px;
  25. }
  26. #bp {
  27. width: 120px;
  28. }
  29. #ww {
  30. width: 130px;
  31. }
  32. #s, #f {
  33. width: 40px;
  34. }
  35. </style>
  36. </head>
  37. <body>
  38. <p>Test passes if there are <strong> green lines between boxes</strong>.</p>
  39. <section>
  40. <div id="bp">Black Panther</div>
  41. <div id="ww">Wonder Woman</div>
  42. <div id="s">Storm</div>
  43. <div id="f">Flash</div>
  44. </section>
  45. </body>
  46. </rml>