- From: Guillaume via GitHub <sysbot+gh@w3.org>
- Date: Thu, 29 Aug 2024 08:14:22 +0000
- To: public-css-archive@w3.org
cdoublev has just created a new issue for https://github.com/w3c/csswg-drafts: == [css-values-5] Clarify how to determine the type of `<percentage>` in `container-progress()` and `media-progress()` == In [`container-progress()`](https://drafts.csswg.org/css-values-5/#container-progress-func) and [`media-progress()`](https://drafts.csswg.org/css-values-5/#funcdef-media-progress), I think the type of `<percentage>` should be [determined](https://drafts.csswg.org/css-values-4/#determine-the-type-of-a-calculation) according to the size/media feature instead of "the context": > `<percentage>` > > If, in the context in which the math function containing this calculation is placed, `<percentage>`s are resolved relative to another type of value (such as in `width`, where `<percentage>` is resolved against a `<length>`), and that other type is not `<number>`, the type is determined as the other type, but with a percent hint set to that other type. For example, `width: calc(1px * container-progress(width from 0px to 100%))` should be invalid because the [`width`](https://drafts.csswg.org/css-conditional-5/#descdef-container-width) size feature does not accept `<percentage>`. Note: there is currently no container/media feature accepting `<percentage>`, if I am not mistaken. Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/10801 using your GitHub account -- Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config
Received on Thursday, 29 August 2024 08:14:23 UTC