CSS Background Gradient Validation

I have several CSS styles in my stylesheet for my site that use the following or options:

background: -webkit-gradient( linear, left bottom, left top, color-stop(0.0, #585858), color-stop(1.0, #ACACAC) ); background: -moz-linear-gradient( center bottom, #585858 0%, #ACACAC 100% ); 

My problem is that when it comes to CSS validation using the W3C Validator, I get the following error:

Error value: background -webkit-gradient (linear, left lower, upper left, color termination (0.0, # 585858), color-stop (1.0, # acacac)) is not a background value: -webkit-gradient (linear, left lower , top left, color stop (0.0, # 585858), color-stop (1.0, # acacac)) -webkit-gradient (linear, bottom left, top left, color stop (0.0, # 585858)), color- stop (1,0, # acacac))

As far as I know, CSS is fine ... this is a validator problem, should I make the testing team I'm working with know?

+6
source share
1 answer

You are using vendor-specific experimental CSS property implementations. They do not conform to CSS.

One of the validator options will allow you to refuse vendor extensions from errors to warnings in reports (therefore, if you decide to use them on the production site, you can find any errors that are not associated with the use of non-standard extensions).

+4
source

Source: https://habr.com/ru/post/886230/


All Articles