overlayscrollbar-sorting-5.html 1.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. <!--
  2. Any copyright is dedicated to the Public Domain.
  3. http://creativecommons.org/publicdomain/zero/1.0/
  4. -->
  5. <!DOCTYPE html>
  6. <meta charset="utf-8">
  7. <title>Test that overlay scrollbars are on top of positioned siblings when the scrollable frame has a positioned descendant that's higher than the sibling</title>
  8. <style>
  9. #outer {
  10. width: 200px;
  11. height: 200px;
  12. overflow: auto;
  13. }
  14. #content {
  15. height: 400px;
  16. background: cyan;
  17. position: relative;
  18. z-index: 3;
  19. }
  20. /* This test has different behavior depending on the type of scrollbar used.
  21. * We want the scrollbar to be visible. When overlay scrollbars are used,
  22. * they should be visible even when #cover gets between #outer and #content,
  23. * but for non-overlay scrollbars, that would cover them so we disable the
  24. * cover.
  25. */
  26. @media all and (-moz-overlay-scrollbars) {
  27. #cover {
  28. width: 200px;
  29. height: 200px;
  30. background: cyan;
  31. position: absolute;
  32. z-index: 2;
  33. }
  34. }
  35. </style>
  36. <div id="cover"></div>
  37. <div id="outer"><div id="content"></div></div>