flexbox-child-is-abspos-container-2.html 922 B

1234567891011121314151617181920212223242526272829303132333435
  1. <!-- Any copyright is dedicated to the Public Domain.
  2. http://creativecommons.org/publicdomain/zero/1.0/ -->
  3. <!-- This testcase has a -moz-box element with a block as its only child, which
  4. forms a containing block for an absolutely positioned grandchild. Also, in
  5. this case, the grandchild is taller than its parent and grandparent. -->
  6. <html>
  7. <head>
  8. <style>
  9. body { margin-top: 50px }
  10. .box { display: -moz-box }
  11. .relpos_parent {
  12. position: relative;
  13. width: 100px;
  14. height: 100px;
  15. background: lightblue;
  16. }
  17. .abspos_child {
  18. position: absolute;
  19. left: 30px;
  20. bottom: 10px;
  21. width: 20px;
  22. height: 130px;
  23. background: purple;
  24. }
  25. </style>
  26. </head>
  27. <body>
  28. <div class="box">
  29. <div class="relpos_parent">
  30. <div class="abspos_child"></div>
  31. </div>
  32. </div>
  33. </body>
  34. </html>