Re: [csswg-drafts] [css-values] Proposal: add sibling-count() and sibling-index() (#4559)

@emilio You can implement this as an `env()` with almost no side effect if you do as follows:
1. assume the value is `0`, parse the assumed declaration, if you get an invalid declaration, drop the declaration
2. keep it just like a `env()` and substitute later, you know it's gonna parse because it did with a `0`

that way, you don't have to modify rgba(...) to support formulas that do not compute, while supporting it anyway.

I can't see a side effect in the 25 seconds I spent on this, maybe you can ;)

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


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

Received on Wednesday, 19 July 2023 23:11:52 UTC