Re: [css-houdini-drafts] [css-typed-om] should the percent hint concept allow percentages to be numbers?

We explicitly discussed 'opacity' in the context of normal CSS `calc()`, and agreed that numbers and %s can't be combined, as it makes unit algebra intractable.  The lack of ability for the percent hint to be "number" is very intentional.

Percent hints just record what unit type a % ended up being resolved to, to make sure that you don't combine an expression that unified %s with lengths and an expression that unified %s with angles (even if the expression types end up being compatible at the point you're using them), because you can only resolve a % to a single type in a particular expression.

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

Received on Tuesday, 30 January 2018 04:02:16 UTC