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

Full rectangular pixel snapping #1292

Merged
merged 3 commits into from May 26, 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

Snapping ref tests

  • Loading branch information
kvark committed May 26, 2017
commit d4235d4c2616e0efb3142a66ee9a4b94480bdc84
Binary file not shown.
@@ -1,11 +1,12 @@
include aa/reftest.list
include blend/reftest.list
include mask/reftest.list
include scrolling/reftest.list
include filters/reftest.list
include boxshadow/reftest.list
include image/reftest.list
include border/reftest.list
include boxshadow/reftest.list
include filters/reftest.list
include gradient/reftest.list
include text/reftest.list
include image/reftest.list
include mask/reftest.list
include scrolling/reftest.list
include snap/reftest.list
include split/reftest.list
include aa/reftest.list
include text/reftest.list
@@ -0,0 +1,2 @@
== snap.yaml snap.png
== transform.yaml transform.png
Binary file not shown.
@@ -0,0 +1,15 @@
---
root:
items:
- type: rect
bounds: [ 1, 1, 5, 5 ]
color: green
- type: rect
bounds: [ 10.4, 1.8, 5, 5 ]
color: green
- type: rect
bounds: [ 21.5, 1.5, 5, 5 ]
color: green
- type: rect
bounds: [ 31.2, 1.6, 4.3, 5.5 ]
color: green
Binary file not shown.
@@ -0,0 +1,19 @@
---
root:
items:
# 45 degrees result in middle -+ 14.142, rounded to 14
- type: stacking-context
bounds: [0, 0, 60, 60]
transform: rotate-y(45)
items:
- type: rect
bounds: [ 10, 10, 40, 40 ]
color: blue
# 50 degrees result in middle -+ 12.856, rounded to 13
- type: stacking-context
bounds: [50, 0, 60, 60]
transform: rotate-x(50)
items:
- type: rect
bounds: [ 10, 10, 40, 40 ]
color: blue
ProTip! Use n and p to navigate between commits in a pull request.
You can’t perform that action at this time.