Re: CSS calc?

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