Re: [css-houdini-drafts] Add wording for CSSNumericValue.type()

Note that whether the base types should be required or optional depends on whether we need to differentiate between the types `{ length: 0 }` and `{}`. I think in the [original IRC log](https://github.com/w3c/css-houdini-drafts/issues/482#issuecomment-343238938), you wanted to differentiate between e.g. `1px/1px` and `1`? How important is this? IMO it's much easier to implement arithmetic if we don't have to differentiate between a "null" exponent and a zero exponent.

I don't think this has any observable impact on arithmetic, so only `CSSNumericValue.type()` can tell the difference between a null and a zero exponent.

Maybe @shans can weigh in on this as well since I asked him a similar question a while back.

-- 
GitHub Notification of comment by darrnshn
Please view or discuss this issue at https://github.com/w3c/css-houdini-drafts/pull/546#issuecomment-359326440 using your GitHub account

Received on Monday, 22 January 2018 05:07:01 UTC