w3c / Mobile-Checker

The Mobile Checker is a tool for Web developers who want to make their Web page or Web app work better on mobile devices.
https://validator.w3.org/mobile-alpha/
MIT License
322 stars 84 forks source link

CSS prefix improvements #47

Open dontcallmedom opened 10 years ago

dontcallmedom commented 10 years ago

The CSS prefixes detection only works for properties at this time; it should work also for prefixed at-rules and prefixed values.

Also, the detection of inconsistent values need to take into account prefixes (otherwise, it reports buggy inconsistencies).

Maybe we can reuse stuff from https://github.com/postcss/autoprefixer ?

dstorey commented 9 years ago

Not sure if this is a separate bug are part of this one, but it complains -ms-animation (and sub properties) are missing, when IE never needed an MS prefix for Animations (except a pre released version)

dontcallmedom commented 9 years ago

It sounds like a separate issue, and one certainly worth fixing; I've created a pull request to that effect (FWIW, we import the list of properties needing prefixes from http://peter.sh/experiments/vendor-prefixed-css-property-overview/ but I hadn't run the scraper in some while)

dstorey commented 9 years ago

@dontcallmedom the prefixes were still recognised even though the unprefixed versions were added to the same version. Probably so that sites that didn't include the non-prefixed but did include the -ms- still work. I think the same applies to gradients too.