gecko-dev/gfx/wr/wrench/reftests/transforms/flatten-twice.yaml
Dzmitry Malyshau 7f9b0ee390 Bug 1532174 - Repace WR RelativeTransform with CoordinateSpaceMapping, improve flattening semantics. r=gw
This change makes get_relative_transform() to no longer rely on any flattening done before in the pipeline.
This makes it correct is some of the cases we failed previously (see ini files removed).
It now does flattening on every flat coordinate system it passes through, and it's used for SpaceMapper.
The old RelativeTransform is now replaced with CoordinateSpaceMapping, which reduces the zoo of our types :)

Differential Revision: https://phabricator.services.mozilla.com/D30600

--HG--
extra : moz-landing-system : lando
2019-05-10 02:22:51 +00:00

22 lines
555 B
YAML

# This test ensures that we flatten the "flat" style trasformations.
# If the flattening doesn't happen here, the rect gets rotated back
# to the original position.
---
root:
items:
-
bounds: [100, 100, 0, 0]
type: stacking-context
transform: rotate-x(45)
transform-origin: 0 0
items:
-
type: "stacking-context"
transform: rotate-x(-45)
transform-origin: 0 0
items:
-
bounds: [0, 0, 200, 200]
type: rect
color: green