inactive-fixed-bg-bug1205630-ref.html 656 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. <!DOCTYPE HTML>
  2. <html>
  3. <head>
  4. <title>Testcase</title>
  5. <style>
  6. body {
  7. margin: 0px;
  8. padding: 0px;
  9. }
  10. #inner {
  11. width: 100px;
  12. height: 100px;
  13. background: linear-gradient(red, blue) no-repeat;
  14. background-position: -50px -50px;
  15. background-size: 800px 800px;
  16. }
  17. #outer {
  18. margin: 50px 50px 0;
  19. width: 100px;
  20. height: 100px;
  21. clip-path: url(#path);
  22. position: fixed;
  23. }
  24. </style>
  25. </head>
  26. <body>
  27. <div id="outer">
  28. <div id="inner"></div>
  29. </div>
  30. <svg height="0">
  31. <defs>
  32. <clipPath id="path" clipPathUnits="objectBoundingBox">
  33. <polygon points="0.25,0.25 0.25,0.75 0.75,0.75 0.75,0.25"/>
  34. </clipPath>
  35. </defs>
  36. </svg>
  37. </body>
  38. </html>