Nyalab / caniuse-api

request the caniuse data to check browsers compatibilities
MIT License
356 stars 27 forks source link

CSS 2.1 properties (well-supported subset) #55

Open agauniyal opened 7 years ago

agauniyal commented 7 years ago

Can anyone tell why query isn't working for some well-known properties like background-color and width. The code below produces output as: Uncaught TypeError: Cannot read property 'title' of undefined.

const caniuse = require('caniuse-api');
console.log(caniuse.getSupport('background-color'));

I've a plugin that uses caniuse-api and would like to support these css properties too - https://github.com/agauniyal/vscode-caniuse/issues/1#issuecomment-279461832. Are there any plans to support them in future?

agauniyal commented 7 years ago

If you search for background-color on Can I Use website, on scrolling a bit down you'll see - CSS 2.1 properties (well-supported subset) section. These are the properties which are neither grouped with existing ones(should be imo) nor show any compatiblity information.