LibWeb/CSS: Implement CSSMathClamp

As the final CSSMathFoo class, this makes the serialization test finally
run instead of crashing.
This commit is contained in:
Sam Atkins 2025-08-21 12:47:26 +01:00 committed by Andreas Kling
commit 177395155a
Notes: github-actions[bot] 2025-08-29 09:59:11 +00:00
11 changed files with 200 additions and 9 deletions

View file

@ -0,0 +1,11 @@
#import <CSS/CSSMathValue.idl>
#import <CSS/CSSNumericValue.idl>
// https://drafts.css-houdini.org/css-typed-om-1/#cssmathclamp
[Exposed=(Window, Worker, PaintWorklet, LayoutWorklet)]
interface CSSMathClamp : CSSMathValue {
constructor(CSSNumberish lower, CSSNumberish value, CSSNumberish upper);
readonly attribute CSSNumericValue lower;
readonly attribute CSSNumericValue value;
readonly attribute CSSNumericValue upper;
};