reftest-assigned-layer-pass.html 745 B

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. <!DOCTYPE html>
  2. <html lang="en">
  3. <meta charset="utf-8">
  4. <title>Both divs should be part of opaque layers.</title>
  5. <style>
  6. .content {
  7. box-sizing: border-box;
  8. width: 200px;
  9. height: 200px;
  10. border: 1px solid black;
  11. margin: 10px;
  12. }
  13. .relative {
  14. position: relative;
  15. }
  16. .fixed {
  17. position: fixed;
  18. top: 140px;
  19. left: 140px;
  20. }
  21. .low-z {
  22. z-index: 1;
  23. }
  24. .high-z {
  25. z-index: 2;
  26. }
  27. .opaque-background {
  28. background-color: white;
  29. }
  30. body {
  31. height: 4000px;
  32. }
  33. </style>
  34. <div class="content relative low-z" reftest-assigned-layer="page-background"></div>
  35. <div class="fixed opaque-background content high-z" reftest-assigned-layer="fixed-layer"></div>
  36. <div class="content relative low-z" reftest-assigned-layer="page-background"></div>