37 lines
1.2 KiB
YAML
37 lines
1.2 KiB
YAML
# Test that we don't select a nested scroll frame as a scroll root and include
|
|
# primitives that are positioned by ancestors of that scroll root, when creating
|
|
# a tile cache for a blend container. This test will cause a panic in
|
|
# `get_relative_transform_with_face` otherwise.
|
|
---
|
|
root:
|
|
items:
|
|
- type: stacking-context
|
|
blend-container: true
|
|
items:
|
|
- type: scroll-frame
|
|
bounds: [0, 0, 200, 200]
|
|
content-size: [200, 400]
|
|
items:
|
|
- type: stacking-context
|
|
bounds: [0, 0, 200, 200]
|
|
transform: rotate(45)
|
|
items:
|
|
- type: rect
|
|
bounds: [0, 0, 200, 200]
|
|
color: red
|
|
- type: scroll-frame
|
|
bounds: [200, 0, 400, 200]
|
|
content-size: [400, 200]
|
|
items:
|
|
- type: scroll-frame
|
|
bounds: [200, 0, 400, 200]
|
|
content-size: [400, 400]
|
|
items:
|
|
- type: rect
|
|
bounds: [200, 0, 100, 200]
|
|
color: green
|
|
backface-visible: true
|
|
- type: rect
|
|
bounds: [300, 0, 100, 200]
|
|
color: blue
|
|
backface-visible: false
|