Re: [csswg-drafts] [css-values-5] What is the MVP for inline conditionals on custom properties? (#10064)

> how would values that contain commas be handled?

We would rely on the [semicolon-upgrading text](https://drafts.csswg.org/css-values-5/#component-function-commas).

So your example would be grammatically invalid as written, but you could upgrade the argument-separating commas to semicolons, like:

```
if(media(width > 200px): media(width > 100px), media(width > 50px); media(width > 10px): 10px)
```

So the first value is `media(width > 100px), media(width > 50px)` and the second value is `10px`.

(I presume that was your intended reading; if not, I'm not sure what you meant it to parse as.)

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


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

Received on Friday, 19 July 2024 17:50:46 UTC