[csswg-drafts] [css-mixins-1] Missing validation of default parameter value against their type (#11922)

cdoublev has just created a new issue for https://github.com/w3c/csswg-drafts:

== [css-mixins-1] Missing validation of default parameter value against their type ==
I guess `@function` should be invalid in this example?

```css
@function --custom(--param <integer>: 1.5) {}
```

**Suggestion:**

```diff
  If the [=function parameters=]
  contain the same <<custom-property-name>> more than once,
+ or if the <<declaration-value>> representing the default value of a function parameter
+ fails to be parsed against its syntax represented by <<css-type>>,
  then the ''@function'' rule is invalid.

Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/11922 using your GitHub account


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

Received on Wednesday, 12 March 2025 10:47:16 UTC