flexbox-empty-container-synthesized-baseline-001-ref.html 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. <!DOCTYPE HTML>
  2. <!--
  3. Any copyright is dedicated to the Public Domain.
  4. http://creativecommons.org/publicdomain/zero/1.0/
  5. -->
  6. <html><head>
  7. <meta charset="utf-8">
  8. <title>Reference: Synthesized flex container baseline.</title>
  9. <link rel="author" title="Mats Palmgren" href="https://bugzilla.mozilla.org/show_bug.cgi?id=1313811">
  10. <style type="text/css">
  11. html,body {
  12. color:black; background-color:white; font:16px/1 monospace; padding:0; margin:0;
  13. }
  14. .ib {
  15. display: inline-block;
  16. }
  17. .ig {
  18. display: inline-grid;
  19. }
  20. .ib, .ig {
  21. border-style: solid;
  22. border-width: 3px 1px 5px 1px;
  23. padding: 7px 10px 3px 8px;
  24. margin: 5px 3px 2px 1px;
  25. }
  26. </style>
  27. </head><body>
  28. <pre>Inline-level context:</pre>
  29. Flexbox:<div class="ib"></div>
  30. Block:<div class="ig"></div>
  31. <pre>Grid-level context:</pre>
  32. <div style="display:inline-grid; grid-auto-flow:column; align-items:baseline; justify-items:start">
  33. Flexbox:<div class="ib"></div>
  34. Block:<div class="ig"></div>
  35. </div>
  36. <pre>Flexbox-level context:</pre>
  37. <div style="display:inline-flex; align-items:baseline; justify-items:start">
  38. Flexbox:<div class="ib" style="margin-bottom:0"></div>
  39. Block:<div class="ig"></div>
  40. </div>
  41. </body></html>