- From: L. David Baron via GitHub <sysbot+gh@w3.org>
- Date: Tue, 05 Mar 2024 14:43:37 +0000
- To: public-css-archive@w3.org
An expression having a percent hint means that the expression only makes sense if percentages in that expression are the type of the percent hint. For example, `calc(10px + 20%)` has a percent hint of `length` and a type of `«[ "length" → 1 ]»` (the type for `<length>`), while `calc((10px + 20%) / 15px)` still has a percent hint of `length` but it has a type of `«[ ]»` (the type for `<number>`). So if we don't check percent hints at all for values of type `<number>` then `calc((10px + 20%) / 15px)` would be accepted for any `<number>`, whereas it only really makes sense in a context that both (a) accepts `<number>` *and* (b) where percentages resolve to lengths. -- GitHub Notification of comment by dbaron Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/10017#issuecomment-1978930833 using your GitHub account -- Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config
Received on Tuesday, 5 March 2024 14:43:39 UTC