W3C home > Mailing lists > Public > www-validator@w3.org > February 2018

Re: CSS calc?

From: Michael[tm] Smith <mike@w3.org>
Date: Sat, 24 Feb 2018 15:03:45 +0900
To: is@starline.ee
Cc: www-validator@w3.org
Message-ID: <20180224060345.GF14452@sideshowbarker.net>
is@starline.ee, 2018-02-17 17:35 +0200:
> Archived-At: <https://www.w3.org/mid/20180217153519.10767.qmail@starline.ee>
> 
> If i have a css-code
> <style>
> width: 100%;
> 	width: -webkit-calc( 100% - 30px );
> 	width: -moz-calc( 100% - 30px );
> 	width: calc( 100% - 30px );
> </style>
> Then web page https://validator.w3.org/ shows errors:
> Error: CSS: width: Parse Error.
> At line 285, column 36
> c( 100% - 30px );

The contents of thee above style element aren’t valid CSS, since there’s no
selector specified. But assuming you instead mean something like this:

<style>
div {
	width: 100%;
	width: -webkit-calc( 100% - 30px );
	width: -moz-calc( 100% - 30px );
	width: calc( 100% - 30px );
}
</style>

...then that now no longer causes an error — due to a recent change to the
CSS-checking backend.

Thanks for catching the problem and taking time to report it so it could be fixed.

-- 
Michael[tm] Smith https://people.w3.org/mike

Received on Saturday, 24 February 2018 06:04:10 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 23:00:03 UTC