[css-houdini-drafts] [css-typed-om] Do CSSMathValue subclasses copy their constructor arguments?

darrnshn has just created a new issue for https://github.com/w3c/css-houdini-drafts:

== [css-typed-om] Do CSSMathValue subclasses copy their constructor arguments? ==
When you pass CSSNumericValues to construct a subclass of CSSMathValue, do the arguments get copied? For example,
```javascript
let x = CSS.px(1);
let y = CSS.px(1);
let sum = CSSMathSum(x, y);
// Q: are sum.values[0] and x the same object?
x.unit = 's'; // Should this be an error since now sum is adding a length with time?
```

I couldn't really find any wording for this; sorry if this was already implicit in the spec. 

Please view or discuss this issue at https://github.com/w3c/css-houdini-drafts/issues/494 using your GitHub account

Received on Sunday, 22 October 2017 23:33:12 UTC