- From: Guillaume via GitHub <sysbot+gh@w3.org>
- Date: Fri, 23 Aug 2024 14:03:44 +0000
- To: public-css-archive@w3.org
cdoublev has just created a new issue for https://github.com/w3c/csswg-drafts: == [css-values-5] How to determine the type of `<progress>` in `calc-mix()`? == The type of [`calc-mix()`](https://drafts.csswg.org/css-values-5/#funcdef-calc-mix) must be made consistent with the type of its [`<progress>`](https://drafts.csswg.org/css-values-5/#progress-type), which is defined with: > `<progress> = [<percentage> | <number> | <'animation-timeline'>] && [by <easing-function>]?` What is the type of `<progress>` in these examples? 1. `calc-mix(0%, 1px, 2px)` in a `<length-percentage>` context 2. `calc-mix(calc(0%), 1px, 2px)` in a `<length-percentage>` context 3. `calc-mix(--timeline, 1px, 2px)` My respective guesses: 1. `[percentage → 1]` 2. `[length → 1]` with a `length` percent hint 3. `[]` **If my guess for 2 is correct**, what is the type of `<progress>` in `opacity: calc-mix(lengthPercentageToNumber(50%), 0, 1)` with `lengthPercentageToNumber()` being an hypothetical function taking `<length-percentage>` and returning `<number>`? Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/10770 using your GitHub account -- Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config
Received on Friday, 23 August 2024 14:03:45 UTC