Re: [csswg-drafts] [css-values-4] Resolve `<percentage>` representing `<number>` or `<angle>` at parse time (#9395)

> However a `<number>` has no canonical unit

Okay, *technically* I don't define that numbers have a canonical unit, because they don't have a unit at all (or they all use the null unit). But this is English, not C++; I think it's clear enough from context what "expressed in its canonical unit" means for numbers (aka, no-op).

> `<percentage>` and `<number>` cannot be combined

While percentages and numbers cannot be combined, as in added/subtracted, you can absolutely have a percentage that *resolves against* a number.

--------

I don't have a particular opinion on whether we should specify that %s are eagerly simplified at parse time when resolved against numbers. I'd be fine with that, *or* with trying to get impls to align on only simplifying at computed-value and used-value time (except for the color function exception we've already talked about).

Agenda+ to decide this.

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


-- 
Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config

Received on Monday, 23 October 2023 21:30:21 UTC