Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upCSS 'transformation: skew()' should take <angle> type as parameters #6238
Conversation
|
Review status: all files reviewed, 2 unresolved discussions, all commit checks successful.
components/style/properties.mako.rs, line 3267 [r1] (raw file): components/style/properties.mako.rs, line 3461 [r1] (raw file): Comments from the review on Reviewable.io |
|
Review status: 3 of 4 files reviewed, 2 unresolved discussions, all commit checks successful. components/style/properties.mako.rs, line 3267 [r1] (raw file): components/style/properties.mako.rs, line 3461 [r1] (raw file): Comments from the review on Reviewable.io |
|
@bors-servo: r+ Review status:
Comments from the review on Reviewable.io |
|
|
Current implementation is taking <number> type as parameter so skew() does not work properly. Let the skew() to get <angle> as specification described. Fixes #6237. r? @pcwalton cc @yichoi <!-- Reviewable:start --> [<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/6238) <!-- Reviewable:end -->
|
|
|
This isn't working.
|
|
The problem is that tan(0.3rad) ≠ 0.3 and tan(0.5rad) ≠ 0.5. |
|
Review status: all files reviewed, 4 unresolved discussions, some commit checks failed. components/style/properties.mako.rs, line 3170 [r2] (raw file): http://dev.w3.org/csswg/css-transforms/#SkewDefined components/style/properties.mako.rs, line 3171 [r2] (raw file): components/style/properties.mako.rs, line 3172 [r2] (raw file): components/style/properties.mako.rs, line 3461 [r2] (raw file): Comments from the review on Reviewable.io |
|
|
|
Review status: all files reviewed, 4 unresolved discussions, some commit checks failed. components/style/properties.mako.rs, line 3170 [r2] (raw file): components/style/properties.mako.rs, line 3461 [r2] (raw file): Comments from the review on Reviewable.io |
|
I'll update the patch to apply nox's comments. As the latest upstream code has been changed, I need to change rust-geom package as well. Rebased patch will be uploaded after below patch is merged. Review status: all files reviewed, 4 unresolved discussions, some commit checks failed. components/style/properties.mako.rs, line 3171 [r2] (raw file): components/style/properties.mako.rs, line 3172 [r2] (raw file): Comments from the review on Reviewable.io |
|
I think you forgot to push the changes here. :) |
|
Yes, I did not push the changes yet. I'll do it after the patch in rust-geom is landed for updating the cargo file. |
|
@Jinwoo-Song Ping? |
Apply skew transformation for alpha and beta angles. This patch is to fix servo/servo#6238. <!-- Reviewable:start --> [<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/euclid/100) <!-- Reviewable:end -->
|
|
|
Fixed at master...nox:skew, but is currently blocked by servo/surfman#28. |
|
Superseded by #7605, thanks for the patch @Jinwoo-Song! |

Jinwoo-Song commentedJun 1, 2015
Current implementation is taking type as parameter so skew()
does not work properly. Let the skew() to get as specification
described.
Fixes #6237.
r? @pcwalton
cc @yichoi