mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-21 09:15:35 +00:00
7f9b0ee390
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
22 lines
555 B
YAML
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
|