flexbox-empty-1-ref.xhtml 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <!--
  3. Any copyright is dedicated to the Public Domain.
  4. http://creativecommons.org/publicdomain/zero/1.0/
  5. -->
  6. <!-- Reference case for behavior of flex containers that have no children -->
  7. <html xmlns="http://www.w3.org/1999/xhtml">
  8. <head>
  9. <style>
  10. div.flexbox {
  11. border: 1px dotted blue;
  12. background: yellow;
  13. }
  14. div.withPadding {
  15. padding: 2px 3px 4px 5px;
  16. }
  17. </style>
  18. </head>
  19. <body>
  20. <div class="flexbox"/>
  21. <div class="flexbox" style="width: 5px"/>
  22. <div class="flexbox" style="width: -moz-available"/>
  23. <div class="flexbox" style="width: -moz-max-content"/>
  24. <div class="flexbox" style="width: -moz-min-content"/>
  25. <div class="flexbox" style="height: 6px"/>
  26. <div class="flexbox" style="width: 7px; height: 8px"/>
  27. <!-- now with padding -->
  28. <div class="flexbox withPadding"/>
  29. <div class="flexbox withPadding" style="width: 5px"/>
  30. <div class="flexbox withPadding" style="width: -moz-available"/>
  31. <div class="flexbox withPadding" style="width: -moz-max-content"/>
  32. <div class="flexbox withPadding" style="width: -moz-min-content"/>
  33. <div class="flexbox withPadding" style="height: 6px"/>
  34. <div class="flexbox withPadding" style="width: 7px; height: 8px"/>
  35. </body>
  36. </html>