clipped-mixblendmode-containing-unclipped-stuff-ref.html 935 B

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  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 yellow;
  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. .absolutelyPositioned {
  25. position: absolute;
  26. top: 20px;
  27. left: 250px;
  28. }
  29. .inner {
  30. margin-left: auto;
  31. border-color: magenta;
  32. }
  33. .blendedOverlay {
  34. position: absolute;
  35. top: 20px;
  36. left: 290px;
  37. width: 10px;
  38. border-left: 0;
  39. border-right: 0;
  40. border-color: blue;
  41. }
  42. </style>
  43. <div class="clip">
  44. <div class="absolutelyPositioned content"></div>
  45. <div class="inner content"></div>
  46. </div>
  47. <div class="blendedOverlay content"></div>