Re: [csswg-drafts] [css-values-5] Clarify how to parse `<if-args-branch>` (#12487)

I'd like to add that this same issue happens for the argument-grammars of other ASFs. eg, [`attr()`](https://drafts.csswg.org/css-values-5/#attr-notation):

```
<attr-args> = attr( <declaration-value>, <declaration-value>? )
```

A comma token is also valid in `<declaration-value>`. The way I handled this in Ladybird is to specifically disallow comma tokens when parsing the first `<declaration-value>`. I'm not familiar with `if()` but I think a similar thing could be done here with colons. It really needs mentioning in the prose of these though.

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


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

Received on Wednesday, 16 July 2025 10:23:32 UTC