1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 19:18:12 +00:00

LibWeb: Add tests for calc function nodes

This commit is contained in:
stelar7 2023-07-31 15:49:42 +02:00 committed by Andreas Kling
parent eb41f0144b
commit 9f73fc87a8
12 changed files with 166 additions and 0 deletions

View file

@ -0,0 +1,38 @@
<!DOCTYPE html>
<style>
div {
position: relative;
background: red;
height: 100px;
width: 100px;
left: 0;
}
.sin {
width: calc(sin(30deg + 1.0471967rad) * 80px);
rotate: 90deg;
}
.cos {
width: calc(cos(e - 2.7182818284590452354) * 100px);
rotate: 90deg;
}
.tan {
width: calc(tan(0.7853975rad) * 120px);
rotate: 90deg;
}
.asin {
height: 140px;
rotate: calc(asin(sin(pi/2)));
}
.acos {
height: 160px;
rotate: calc(acos(cos(pi / 2)));
}
.atan {
height: 180px;
rotate: calc(atan(tan(pi / 2)));
}
.atan2 {
height: 200px;
rotate: calc(atan2(10px, 0px));
}
</style><div class="sin"></div><div class="cos"></div><div class="tan"></div><div class="asin"></div><div class="acos"></div><div class="atan"></div><div class="atan2"></div>