Definition
CSS Typed OM Level 1 defines CSSNumericValue
[Exposed=(Window, Worker, PaintWorklet, LayoutWorklet)]
interface CSSNumericValue : CSSStyleValue {
CSSNumericValue add(CSSNumberish... values);
CSSNumericValue sub(CSSNumberish... values);
CSSNumericValue mul(CSSNumberish... values);
CSSNumericValue div(CSSNumberish... values);
CSSNumericValue min(CSSNumberish... values);
CSSNumericValue max(CSSNumberish... values);
boolean equals(CSSNumberish... value);
CSSUnitValue to(USVString unit);
CSSMathSum toSum(USVString... units);
CSSNumericType type();
[Exposed=Window] static CSSNumericValue parse(USVString cssText);
};
Methods and attributes that return objects implementing CSSNumericValue
CSSNumericValue.add()
CSSNumericValue.sub()
CSSNumericValue.mul()
CSSNumericValue.div()
CSSNumericValue.min()
CSSNumericValue.max()
CSSNumericValue.parse()
CSSMathNegate.value
CSSMathInvert.value
CSSMathClamp.lower
CSSMathClamp.value
CSSMathClamp.upper
CSSNumericArray[index]
CSSTranslate.x
CSSTranslate.y
CSSTranslate.z
CSSRotate.angle
CSSSkew.ax
CSSSkew.ay
CSSSkewX.ax
CSSSkewY.ay
CSSHWB.h
ViewTimeline.startOffset
ViewTimeline.endOffset
CSSRotate.x
CSSRotate.y
CSSRotate.z
CSSScale.x
CSSScale.y
CSSScale.z
CSSHWB.w
CSSHWB.b
CSSHWB.alpha
CSSColor.alpha
AnimationTimeline.currentTime
AnimationTimeline.duration
Animation.startTime
Animation.currentTime
AnimationPlaybackEvent.currentTime
AnimationPlaybackEvent.timelineTime
CSSPerspective.length
Referring IDL interfaces/dictionaries
Referring specifications
- Scroll-driven Animations refers to
CSSNumericValue
- Web Animations Level 2 refers to
CSSNumericValue