bug1281593.html 926 B

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4. <title>Transform and Blend Mode</title>
  5. <style>
  6. body {
  7. background: cornflowerblue;
  8. }
  9. .box-blend-mode {
  10. width: 64px;
  11. height: 64px;
  12. margin-bottom: 1em;
  13. background-color: hsla(0,0%,0%,.25);
  14. mix-blend-mode: multiply;
  15. }
  16. .box-blend-mode-inner {
  17. width: 48px;
  18. height: 48px;
  19. background-image: url("../backgrounds/transparent-32x32.png");
  20. background-position: center center;
  21. background-repeat: no-repeat;
  22. mix-blend-mode: multiply;
  23. }
  24. .box-blend-mode-inner.transformed {
  25. transform: rotate(45deg);
  26. }
  27. </style>
  28. </head>
  29. <body>
  30. <div class="box-blend-mode">
  31. <div class="box-blend-mode-inner"></div>
  32. </div>
  33. <div class="box-blend-mode">
  34. <div class="box-blend-mode-inner transformed"></div>
  35. </div>
  36. </body>
  37. </html>