mirror of
https://github.com/servo/servo.git
synced 2025-08-03 04:30:10 +01:00
CSS 'transformation: skew()' should take <angle> type as parameters
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.
This commit is contained in:
parent
f11fcebd9c
commit
d524601cf5
6 changed files with 133 additions and 13 deletions
|
@ -1217,8 +1217,8 @@ impl FragmentDisplayListBuilding for Fragment {
|
|||
transform::ComputedOperation::Matrix(m) => {
|
||||
m.to_gfx_matrix()
|
||||
}
|
||||
transform::ComputedOperation::Skew(sx, sy) => {
|
||||
Matrix4::create_skew(sx, sy)
|
||||
transform::ComputedOperation::Skew(theta_x, theta_y) => {
|
||||
Matrix4::create_skew(theta_x.radians(), theta_y.radians())
|
||||
}
|
||||
};
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue