clipped-mixblendmode-containing-unclipped-stuff.html 831 B

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. <!DOCTYPE html>
  2. <html lang="en">
  3. <meta charset="utf-8">
  4. <title>Blend mode items shouldn't clip unclipped children to their own clip</title>
  5. <style>
  6. body {
  7. margin: 0;
  8. background: white; /* this shouldn't be necessary, bug ??????? */
  9. }
  10. .content {
  11. box-sizing: border-box;
  12. border: 10px solid blue;
  13. width: 100px;
  14. height: 100px;
  15. }
  16. .clip {
  17. box-sizing: border-box;
  18. width: 300px;
  19. height: 200px;
  20. border: 10px solid black;
  21. background-color: white;
  22. overflow: hidden;
  23. }
  24. .mixBlendMode {
  25. mix-blend-mode: exclusion;
  26. }
  27. .absolutelyPositioned {
  28. position: absolute;
  29. top: 20px;
  30. left: 250px;
  31. }
  32. .inner {
  33. margin-left: auto;
  34. border-color: lime;
  35. }
  36. </style>
  37. <div class="clip">
  38. <div class="mixBlendMode">
  39. <div class="absolutelyPositioned content"></div>
  40. <div class="inner content"></div>
  41. </div>
  42. </div>