W3C home > Mailing lists > Public > public-css-archive@w3.org > December 2020

Re: [csswg-drafts] [css-variables?] Higher level custom properties that control multiple declarations (#5624)

From: Quentin Albert via GitHub <sysbot+gh@w3.org>
Date: Wed, 09 Dec 2020 20:53:47 +0000
To: public-css-archive@w3.org
Message-ID: <issue_comment.created-742042859-1607547226-sysbot+gh@w3.org>
@tabatkins How will nested conditions be written? 

As far as I understood it this would be the inline solution
`
my-input {
    border-radius: cond((var(--pill) = on) cond(var(--half) 10px; 999px); 0px);
}
`

`my-input {
        color: blue;
	@if (var(--pill) = on) {
		color: green;
	}
}`

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


-- 
Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config
Received on Wednesday, 9 December 2020 20:53:49 UTC

This archive was generated by hypermail 2.4.0 : Tuesday, 5 July 2022 06:42:23 UTC