Re: [csswg-drafts] [css-values-4] `<integer>` grammar terms and `<number>`-returning functions (#11040)

Fwiw, matching the behavior of math functions was my point in #10979:

  - rounding to `<integer>`

Currently, `progress()` is a math function but `container-progress()` is not, so `z-index: progress(1px, 1px)` is valid but `z-index: container-progress(width, 1px, 1px)` is not.

  - range checking (clamping)

Again, since `progress()` is a math function, `font-weight: progress(0px, 1001px)` is valid and clamped but `font-weight: container-progress(...)` might be invalid.

  - serialization without `calc()`

`calc(progress(...)` serializes with `progress(...)` but `calc(container-progress(...))` serializes as is.

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


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

Received on Wednesday, 13 November 2024 05:06:25 UTC