Thu, 15 Jan 2015 21:03:48 +0100
Integrate friendly tips from Tor colleagues to make (or not) 4.5 alpha 3;
This includes removal of overloaded (but unused) methods, and addition of
a overlooked call to DataStruct::SetData(nsISupports, uint32_t, bool.)
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 | overflow: hidden; |
michael@0 | 8 | border-radius: 0px 0px 20px 0px; |
michael@0 | 9 | position: absolute; |
michael@0 | 10 | z-index: 0; |
michael@0 | 11 | background-color: #00ff00; |
michael@0 | 12 | } |
michael@0 | 13 | |
michael@0 | 14 | .child { |
michael@0 | 15 | width: 300px; |
michael@0 | 16 | height: 300px; |
michael@0 | 17 | margin-left: 100px; |
michael@0 | 18 | background-color: #ff0000; |
michael@0 | 19 | mix-blend-mode: difference; |
michael@0 | 20 | } |
michael@0 | 21 | |
michael@0 | 22 | body { |
michael@0 | 23 | margin: 0; |
michael@0 | 24 | } |
michael@0 | 25 | |
michael@0 | 26 | </style> |
michael@0 | 27 | <!-- Rounded rect clipping seems to not yield the same results when clipping |
michael@0 | 28 | the parent and child elements individually. The reference rendering will show |
michael@0 | 29 | some of the parent green color around the child's clipped corner. |
michael@0 | 30 | The reftests, on the other hand, shows some gray pixels around the same area. |
michael@0 | 31 | This may somehow be related to antialiasing. --> |
michael@0 | 32 | </head> |
michael@0 | 33 | <body> |
michael@0 | 34 | <div class="parent"> |
michael@0 | 35 | <div class="child"></div> |
michael@0 | 36 | </div> |
michael@0 | 37 | </body> |