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

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

== [css-typed-om] should the percent hint concept allow percentages to be numbers? ==
The [section on numeric value typing](https://drafts.css-houdini.org/css-typed-om-1/#numeric-typing) defines a concept called a percent hint that seems to suggest what type a percent is compatible with.  However, a bunch of the mechanisms here (such as the way the percent hint is stored, I think, and also the rules for adding types) don't seem compatible with the idea that a percent can be equivalent to a number, as it is for the CSS [`opacity`](https://drafts.csswg.org/css-color-4/#transparency).

I haven't entirely gotten through to see how percent hints end up being used (and some pieces still don't look fully fleshed out, e.g., the definition of `type()` on [`CSSNumericValue` itself](https://drafts.css-houdini.org/css-typed-om-1/#cssnumericvalue)), but it seems like this might be problematic.

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

Received on Sunday, 28 January 2018 06:51:19 UTC