mirror of
https://github.com/servo/servo.git
synced 2025-08-04 05:00:08 +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
51
tests/ref/transform_skew_a.html
Normal file
51
tests/ref/transform_skew_a.html
Normal file
|
@ -0,0 +1,51 @@
|
|||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<style>
|
||||
div {
|
||||
height: 150px;
|
||||
width: 150px;
|
||||
}
|
||||
|
||||
div>div {
|
||||
background-color: blue;
|
||||
}
|
||||
|
||||
.container {
|
||||
border: 1px solid black;
|
||||
margin: 20px;
|
||||
}
|
||||
|
||||
.transformed1 {
|
||||
transform: skewX(0.3rad);
|
||||
}
|
||||
|
||||
.transformed2 {
|
||||
transform: skewY(0.5rad);
|
||||
}
|
||||
|
||||
.transformed3 {
|
||||
transform: skew(0.3rad, 0.5rad);
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<p>
|
||||
<div class="container">
|
||||
<div class="transformed1"></div>
|
||||
</div>
|
||||
</p>
|
||||
|
||||
<p>
|
||||
<div class="container">
|
||||
<div class="transformed2"></div>
|
||||
</div>
|
||||
</p>
|
||||
|
||||
<p>
|
||||
<div class="container">
|
||||
<div class="transformed3"></div>
|
||||
</div>
|
||||
</p>
|
||||
</body>
|
||||
</html>
|
Loading…
Add table
Add a link
Reference in a new issue