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

Re: [csswg-drafts] css var & font-size bug

From: Xidorn Quan via GitHub <sysbot+gh@w3.org>
Date: Wed, 27 Dec 2017 12:04:27 +0000
To: public-css-archive@w3.org
Message-ID: <issue_comment.created-354104267-1514376266-sysbot+gh@w3.org>
`var(--fontSize)*2` is expanded to `12px*2` in your example, which is invalid. As @Loirooriol mentioned, if you want to calculate, you need to wrap the formula inside `calc()`.

GitHub Notification of comment by upsuper
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/2137#issuecomment-354104267 using your GitHub account
Received on Wednesday, 27 December 2017 12:04:29 UTC

This archive was generated by hypermail 2.4.0 : Tuesday, 5 July 2022 06:41:21 UTC