Thu, 15 Jan 2015 21:13:52 +0100
Remove forgotten relic of ABI crash risk averse overloaded method change.
michael@0 | 1 | <!DOCTYPE HTML> |
michael@0 | 2 | <head> |
michael@0 | 3 | <style> |
michael@0 | 4 | .parent { |
michael@0 | 5 | width: 200px; |
michael@0 | 6 | height: 200px; |
michael@0 | 7 | position: absolute; |
michael@0 | 8 | z-index: 1; |
michael@0 | 9 | background-color: #00ff00; |
michael@0 | 10 | } |
michael@0 | 11 | |
michael@0 | 12 | .intermediate { |
michael@0 | 13 | width: 100px; |
michael@0 | 14 | height: 100px; |
michael@0 | 15 | margin-left:50px; |
michael@0 | 16 | background-color: #ff00ff; |
michael@0 | 17 | mix-blend-mode: difference; |
michael@0 | 18 | } |
michael@0 | 19 | |
michael@0 | 20 | .child { |
michael@0 | 21 | width: 100px; |
michael@0 | 22 | height: 100px; |
michael@0 | 23 | margin-left:50px; |
michael@0 | 24 | background-color: #00ffff; |
michael@0 | 25 | mix-blend-mode: multiply; |
michael@0 | 26 | } |
michael@0 | 27 | |
michael@0 | 28 | body { |
michael@0 | 29 | margin:0px; |
michael@0 | 30 | } |
michael@0 | 31 | </style> |
michael@0 | 32 | <!-- Blending should happen as follows: |
michael@0 | 33 | First, the child element should blend with the intermediate element, with |
michael@0 | 34 | the multiply operator. Is should not blend with the parent directly. |
michael@0 | 35 | Then, group formed by the blended child and the intermediate element should |
michael@0 | 36 | blend with the parent as a single layer. |
michael@0 | 37 | --> |
michael@0 | 38 | </head> |
michael@0 | 39 | <body> |
michael@0 | 40 | <div class="parent"> |
michael@0 | 41 | <div class="intermediate"> |
michael@0 | 42 | <div class="child"></div> |
michael@0 | 43 | </div> |
michael@0 | 44 | </div> |
michael@0 | 45 | </body> |