Source code

Revision control

Copy as Markdown

Other Tools

# Verify that we don't promote compositor surfaces within a root level blend container,
# as that can prevent correct blending with the compositor surface.
---
root:
items:
- type: stacking-context
blend-container: true
items:
- type: rect
bounds: [50, 50, 362, 362]
color: green
- image: transparent-checkerboard(2,16,16)
bounds: [100, 100, 262, 262]
prefer-compositor-surface: true
- type: stacking-context
mix-blend-mode: multiply
items:
- type: rect
bounds: [150, 150, 162, 162]
color: red