mirror of
https://github.com/servo/servo.git
synced 2025-08-08 23:15:33 +01:00
First step towards 3d transforms.
* Add parser support for 3d transforms. * Change ComputedMatrix to a representation that suits interpolation. * Switch stacking contexts to use 4x4 matrices. The transforms themselves are still converted to 2d and handled by azure for now, but this is a small standalone part that can be landed now to make it easier to review.
This commit is contained in:
parent
09f2977cc9
commit
f47ba6fd33
12 changed files with 530 additions and 186 deletions
122
tests/ref/transform_3d_ref.html
Normal file
122
tests/ref/transform_3d_ref.html
Normal file
|
@ -0,0 +1,122 @@
|
|||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<style type="text/css">
|
||||
#div_t3d_1 {
|
||||
position: absolute;
|
||||
background-color: red;
|
||||
top: 10px;
|
||||
left: 10px;
|
||||
width: 40px;
|
||||
height: 40px;
|
||||
}
|
||||
|
||||
#div_t3d_2 {
|
||||
position: absolute;
|
||||
background-color: green;
|
||||
top: 20px;
|
||||
left: 20px;
|
||||
width: 20px;
|
||||
height: 20px;
|
||||
}
|
||||
|
||||
#div_t3d_3 {
|
||||
position: absolute;
|
||||
background-color: red;
|
||||
top: 10px;
|
||||
left: 60px;
|
||||
width: 40px;
|
||||
height: 40px;
|
||||
}
|
||||
|
||||
#div_t3d_4 {
|
||||
position: absolute;
|
||||
background-color: green;
|
||||
top: 20px;
|
||||
left: 5px;
|
||||
width: 20px;
|
||||
height: 20px;
|
||||
}
|
||||
|
||||
#div_s3d_1 {
|
||||
position: absolute;
|
||||
background-color: red;
|
||||
top: 10px;
|
||||
left: 110px;
|
||||
width: 40px;
|
||||
height: 40px;
|
||||
}
|
||||
|
||||
#div_s3d_2 {
|
||||
position: absolute;
|
||||
background-color: green;
|
||||
top: 0;
|
||||
left: 15px;
|
||||
width: 10px;
|
||||
height: 40px;
|
||||
}
|
||||
|
||||
#div_r3d_1 {
|
||||
position: absolute;
|
||||
background-color: red;
|
||||
top: 60px;
|
||||
left: 10px;
|
||||
width: 40px;
|
||||
height: 40px;
|
||||
}
|
||||
|
||||
#div_r3d_2 {
|
||||
position: absolute;
|
||||
background-color: green;
|
||||
top: 15px;
|
||||
left: 5px;
|
||||
width: 20px;
|
||||
height: 10px;
|
||||
}
|
||||
|
||||
#div_r3d_3 {
|
||||
position: absolute;
|
||||
background-color: red;
|
||||
top: 60px;
|
||||
left: 60px;
|
||||
width: 40px;
|
||||
height: 40px;
|
||||
}
|
||||
|
||||
#div_r3d_4 {
|
||||
position: absolute;
|
||||
background-color: green;
|
||||
top: 15px;
|
||||
left: 5px;
|
||||
width: 20px;
|
||||
height: 10px;
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<div id="div_t3d_1">
|
||||
<div id="div_t3d_2">
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="div_t3d_3">
|
||||
<div id="div_t3d_4">
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="div_s3d_1">
|
||||
<div id="div_s3d_2">
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="div_r3d_1">
|
||||
<div id="div_r3d_2">
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="div_r3d_3">
|
||||
<div id="div_r3d_4">
|
||||
</div>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
Loading…
Add table
Add a link
Reference in a new issue