Search completed in 1.16 seconds.
1 results for "cssmathclamp":
CSSMathValue.operator - Web APIs
Web › API › CSSMathValue › operator
e indicates the operator that the current subtype represents. For example, if the current CSSMathValue subtype is CSSMathSum, this property will return the string "sum". Syntax var aString = CSSMathValue.operator; Value A String. Interface Value CSSMathSum "sum" CSSMathProduct "product" CSSMathMin "min" CSSMathMax "max" CSSMathClamp "clamp" CSSMathNegate "negate" CSSMathInvert "invert" Examples We create an element with a width determined using a calc() function, then console.log() the operator. <div>My width has a <code>calc()</code> function</div> We assign a width with a calculation div { width: calc(50% - 0.5vw); } We add the JavaScript const styleMap = document.querySelector('d...