W3C home > Mailing lists > Public > www-validator-css@w3.org > July 2021

RE: Validator failing to comprehend CSS Variables, CSS Variables inside of calc()

From: <doug@perreault.us>
Date: Wed, 28 Jul 2021 14:13:56 -0400
To: "'John A. Bilicki III'" <jab_creations@yahoo.com>, <www-validator-css@w3.org>
Message-ID: <000601d783dc$552857b0$ff790710$@perreault.us>
I haven’t seen anyone official answering these e-mails recently, but a quick question… are CSS variables standard yet? Last I knew they weren’t. That could be the reason for the parse error.

 

--Doug


------------------------------------------------------------------

Douglas Perreault, CPA* CITP CGMA
*CPA designation regulated by the State of Florida

 

From: www-validator-css-request+bounce-doug=perreault.us@listhub.w3.org <www-validator-css-request+bounce-doug=perreault.us@listhub.w3.org> On Behalf Of John A. Bilicki III
Sent: Wednesday, July 28, 2021 7:53 AM
To: www-validator-css@w3.org
Subject: Validator failing to comprehend CSS Variables, CSS Variables inside of calc()

 

Greetings,

 

I don't regularly use the CSS validator however I needed another opinion and found that it failed miserably in regards to CSS variables.

 

I write very dynamic code so I'll often combine multiple bits as it saves me a lot of time. In this case CSS variables and calc():

 

.selector {height: calc(var(--option-height) * 1);}

 

This resulted in the following false error:

 

Value Error : height Parse Error

 

John
Received on Wednesday, 28 July 2021 18:14:13 UTC

This archive was generated by hypermail 2.4.0 : Wednesday, 28 July 2021 18:14:14 UTC