mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 16:18:12 +00:00
LibWeb: Add tests for calc function nodes
This commit is contained in:
parent
eb41f0144b
commit
9f73fc87a8
12 changed files with 166 additions and 0 deletions
|
@ -0,0 +1,22 @@
|
|||
<!DOCTYPE html>
|
||||
<style>
|
||||
* {
|
||||
width: 0px;
|
||||
height: 0px;
|
||||
}
|
||||
.pow {
|
||||
width: calc(10px * pow(2, 3));
|
||||
}
|
||||
.sqrt {
|
||||
width: calc(10px * sqrt(100));
|
||||
}
|
||||
.hypot {
|
||||
width: hypot(72px, 96px)
|
||||
}
|
||||
.log {
|
||||
width: round(up, calc(100px * log(4.055)), 10px);
|
||||
}
|
||||
.exp {
|
||||
width: round(up, calc(1px * exp(5.05)), 10px);
|
||||
}
|
||||
</style><div class="pow"><div class="sqrt"><div class="hypot"><div class="log"><div class="exp">
|
Loading…
Add table
Add a link
Reference in a new issue