Source code

Revision control

Copy as Markdown

Other Tools

# Test that a scroll-frame nested within a scale
# transform correctly calculates local offsets.
root:
items:
- type: stacking-context
transform: scale(0.5)
items:
- type: scroll-frame
id: 2
bounds: [100, 100, 100, 100]
content-size: [260, 260]
scroll-offset: [0, 60]
clip-to-frame: true
items:
- type: rect
color: green
bounds: [100, 100, 260, 260]
clip-chain: [2]