GeezerVison is showing developer.mozilla.org — CSSNumericArray - Web APIs | MDN
CSSNumericArray
Limited availability
This feature is not Baseline because it does not work in some of the most widely-used browsers.
Want more browser support for this feature? Tell us why.
The values property of a CSSMathSum is a CSSNumericArray containing the terms of the sum.
This example creates a CSSMathSum, then reads its values via length, indexed access, and iteration.
js
const sum = new CSSMathSum(CSS.px(10), CSS.em(5), CSS.percent(50));
const values = sum.values;
console.log(values.length); // 3
console.log(values[0]); // CSSUnitValue {value: 10, unit: "px"}
for (const value of values) {
console.log(value.toString());
}
// "10px"
// "5em"
// "50%"