Home > Software design >  "-webkit-background-size" is not a known CSS property name. Visual Studio 2022
"-webkit-background-size" is not a known CSS property name. Visual Studio 2022

Time:12-18

I have this error for my CSS file in ASP.NET Core visual studio 2022

Warning     "-webkit-background-size" is not a known CSS property name. myproject   D:\Users\Amir ESH\source\repos\myproject\myproject\wwwroot\css\main.css 172 


Severity    Code    Description Project File    Line    Suppression State
Warning     "-moz-background-size" is not a known CSS property name.    myproject   D:\Users\Amir ESH\source\repos\myproject\myproject\wwwroot\css\main.css 173

I have this code on that lines

-webkit-background-size: cover;
-moz-background-size: cover;

CodePudding user response:

If you add Web Essentials your problem will hopefully be solved

enter image description here

Alternatively, you can try installing the CSS 3 Intellisense Schema plugin supported by the Visual Studio 2010 IDE.

  • Related