Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixed inner rectangle computation for transformed clips #2189

Merged
merged 2 commits into from Dec 8, 2017
Merged
Changes from 1 commit
Commits
File filter...
Filter file types
Jump to…
Jump to file
Failed to load files.

Always

Just for now

Prev

Add a test for non-axis-aligned clipping

  • Loading branch information
mrobinson committed Dec 7, 2017
commit 6b4ddfb2fb92c1f51ecbd7cee53f695d4992be8f
Binary file not shown.
@@ -0,0 +1,35 @@
# Test that transformed content is clipped properly by clips with a different transform.
---
root:
items:
-
bounds: [0, 0, 0, 0]
"clip-rect": [0, 0, 0, 0]
"clip-and-scroll": 0
type: "stacking-context"
transform: rotate(45) translate(200, 0)
items:
-
bounds: [0, 0, 300, 300]
"clip-rect": [0, 0, 300, 300]
"clip-and-scroll": 0
type: rect
color: red
-
bounds: [0, 0, 300, 300]
"clip-rect": [0, 0, 300, 300]
"clip-and-scroll": 0
type: clip
id: 5
-
bounds: [0, 0, 0, 0]
"clip-rect": [0, 0, 0, 0]
"clip-and-scroll": 5
type: "stacking-context"
transform: rotate(-45) translate(-300, 0)
items:
-
bounds: [0, 0, 1598, 1200]
"clip-rect": [0, 0, 1598, 1200]
type: rect
color: green
@@ -1,3 +1,3 @@
== clip-mode.yaml clip-mode.png
== clip-ellipse.yaml clip-ellipse.png

== clip-45-degree-rotation.yaml clip-45-degree-rotation-ref.png
ProTip! Use n and p to navigate between commits in a pull request.
You can’t perform that action at this time.