Re: [css-houdini-drafts] [css-typed-om] Will need to handle min()/max()

That is, throw away CSSCalcValue, in favor of:

```
interface CSSMathValue {
  attribute CSSMathOperator operator;
  attribute Array arguments;
  readonly attribute DOMString type;
};

enum CSSMathOperator { "+", "*", "/", "min", "max" };

partial interface CSSNumericValue {
  record<DOMString, double> toSum();
};
```

`toSum()` is analogous to `to` - if possible, it collapses it down to a sum of simple units, and represents that as a JS object.

-- 
GitHub Notification of comment by tabatkins
Please view or discuss this issue at https://github.com/w3c/css-houdini-drafts/issues/359#issuecomment-294687656 using your GitHub account

Received on Tuesday, 18 April 2017 05:30:30 UTC