Source code

Revision control

Copy as Markdown

Other Tools

# Tests that mix-blend mode content renders correctly when in a scaled surface.
# See bug 1642549
---
root:
items:
- type: stacking-context
bounds: 0 0 0 0
# Force WebRender to form a raster root
transform: perspective(1000)
items:
- type: stacking-context
bounds: -50 -50 0 0
# The raster root will have a 2x scaling factor
transform: scale(2)
blend-container: true
items:
- rect: 0 0 100 100
color: green
- type: stacking-context
mix-blend-mode: multiply
items:
- rect: 0 0 100 100
color: white