mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 16:27:35 +00:00
LibWeb/CSS: Add support for translateZ() transform property
This commit is contained in:
parent
3ed48e6008
commit
961b067df8
2 changed files with 15 additions and 0 deletions
|
@ -139,6 +139,14 @@
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
|
"translateZ": {
|
||||||
|
"parameters": [
|
||||||
|
{
|
||||||
|
"type": "<length>",
|
||||||
|
"required": true
|
||||||
|
}
|
||||||
|
]
|
||||||
|
},
|
||||||
"scale": {
|
"scale": {
|
||||||
"parameters": [
|
"parameters": [
|
||||||
{
|
{
|
||||||
|
|
|
@ -84,6 +84,13 @@ Gfx::FloatMatrix4x4 Transformation::to_matrix(Painting::PaintableBox const& pain
|
||||||
0, 0, 1, 0,
|
0, 0, 1, 0,
|
||||||
0, 0, 0, 1);
|
0, 0, 0, 1);
|
||||||
break;
|
break;
|
||||||
|
case CSS::TransformFunction::TranslateZ:
|
||||||
|
if (count == 1)
|
||||||
|
return Gfx::FloatMatrix4x4(1, 0, 0, 0,
|
||||||
|
0, 1, 0, 0,
|
||||||
|
0, 0, 1, value(0),
|
||||||
|
0, 0, 0, 1);
|
||||||
|
break;
|
||||||
case CSS::TransformFunction::Scale:
|
case CSS::TransformFunction::Scale:
|
||||||
if (count == 1)
|
if (count == 1)
|
||||||
return Gfx::FloatMatrix4x4(value(0), 0, 0, 0,
|
return Gfx::FloatMatrix4x4(value(0), 0, 0, 0,
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue