Re: [css-houdini-drafts] [css-typed-om] Simplifying expressions in CSSMathValue subclasses.

The Working Group just discussed `Simplifying expressions in CSSMathValue subclasses`, and agreed to the following resolutions:

* `RESOLVED: mul/div/invert/max/min should have shortcut just like add/negate/sub`

<details><summary>The full IRC log of that discussion</summary>
&lt;nainar> Topic: Simplifying expressions in CSSMathValue subclasses<br>
&lt;TabAtkins> GitHub: https://github.com/w3c/css-houdini-drafts/issues/503<br>
&lt;nainar> TabAtkins: Math operations in class - you can say px.add(some other px value)<br>
&lt;nainar> TabAtkins: some operations have shortcuts to return the operation. Have it for add, negate, sub. Dont have it for mul, div, invert, min, max<br>
&lt;nainar> TabAtkins: Have a sketch in the issue of how to do it. Apply these shortcuts to all operations or none?<br>
&lt;nainar> TabAtkins: Add always returns a CSSMathSum or a unit vaoue if easily computable?<br>
&lt;nainar> Rossen: Similiar with what we do to calc? You simplify it down<br>
&lt;TabAtkins> https://drafts.css-houdini.org/css-typed-om/#dom-cssnumericvalue-add<br>
&lt;nainar> TabAtkins: Yes<br>
&lt;nainar> Rossen: would align with what we already expose<br>
&lt;nainar> TabAtkins: People who want to increment length by 1 unit will still get a length unit and not complicated expression<br>
&lt;nainar> dholbert: addition inside of a loop - would be a good idea<br>
&lt;nainar> Rossen: it keeps expanding.<br>
&lt;nainar> RESOLVED: mul/div/invert/max/min should have shortcut just like add/negate/sub<br>
</details>


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

Received on Thursday, 9 November 2017 18:11:30 UTC