- From: Christoph Päper via GitHub <noreply@w3.org>
- Date: Tue, 07 Apr 2026 09:02:34 +0000
- To: public-css-archive@w3.org
<!--
~~~~ css
svg {
--var: green;
--var: env(--param, var(--var, orange));
stroke: red;
stroke: var(--var, yellow);
}
img[src="none.svg"] {
link-parameter: param(--param);
/* => green */
}
img[src="empty.svg"] {
link-parameter: param(--param,);
/* => ? */
}
img[src="valid.svg"] {
link-parameter: param(--param, lime);
/* => lime */
}
img[src="invalid.svg"] {
link-parameter: param(--param, 100px);
/* => ? */
}
~~~~
-->
It could be handy if `param(--foo)` was shorthand notation for `param(--foo, var(--foo))`, but this could also be confusing.
--
GitHub Notification of comment by Crissov
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/13767#issuecomment-4197798140 using your GitHub account
--
Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config
Received on Tuesday, 7 April 2026 09:02:34 UTC