reftest-assigned-layer-fail-2.html 801 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  1. <!DOCTYPE html>
  2. <html lang="en">
  3. <meta charset="utf-8">
  4. <title>This test will fail because .mid-z is not in the same layer as .low-z</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. .mid-z {
  25. z-index: 2;
  26. }
  27. .high-z {
  28. z-index: 3;
  29. }
  30. .opaque-background {
  31. background-color: white;
  32. }
  33. body {
  34. height: 4000px;
  35. }
  36. </style>
  37. <div class="content relative low-z" reftest-assigned-layer="page-background"></div>
  38. <div class="fixed opaque-background content mid-z" reftest-assigned-layer="page-background"></div>
  39. <div class="content relative low-z" reftest-assigned-layer="page-background"></div>