mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-11-14 20:51:07 +00:00
4e6759a126
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.
44 lines
431 B
CSS
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;
|
|
}
|