w3c / css-validator

W3C CSS Validation Service
https://jigsaw.w3.org/css-validator/
Other
204 stars 105 forks source link

image-set property is reported as an error... incorrectly #388

Open KevinGIRAULT opened 1 year ago

KevinGIRAULT commented 1 year ago

Hello,

The image-set property is not recognized by w3c Jigsaw validator. Here is an example from MDN image-set page:

.box {
  background-image: -webkit-image-set(
    url("small-balloons.jpg") 1x,
    url("large-balloons.jpg") 2x);
  background-image: image-set(
    url("small-balloons.jpg") 1x,
    url("large-balloons.jpg") 2x);
}

The validator seems to recognize only the -webkit version.

Source : https://developer.mozilla.org/en-US/docs/Web/CSS/image/image-set