gtk/testsuite/css/parser/calc.ref.css
Matthias Clasen 4e6759a126 css: Implement math functions
Implement the functions described in the "Mathematical
Expressions" section of the "CSS Values and Units Module
Level 4" spec, https://www.w3.org/TR/css-values-4/.

Beyond calc(), which we already had, this includes
min(), max(), clamp(),
round(), rem(), mod(),
sin(), cos(), tan(), asin(), acos(), atan(), atan2(),
pow(), sqrt(), hypot(), log(), exp(),
abs(), sign(),
e, pi, infinity and NaN.

Some tests included.
2024-05-19 17:27:37 -04:00

44 lines
431 B
CSS

a {
margin-left: calc(1em + 3px);
}
b {
transition-duration: 0.80000000000000004s;
}
c {
margin-left: calc(1em + 2px);
}
d {
background-size: calc(-10px + 100%);
}
e {
border-left-width: 2px;
}
f {
background-size: 24px;
}
g {
background-size: 1px;
}
h {
background-size: calc(27em + 36px);
}
i {
border-top-left-radius: 5px 1px;
}
j {
border-bottom-right-radius: 5px 1px;
}
k {
margin-left: 1px;
}