Comparing version
@@ -1,3 +0,5 @@ | ||
var matchOutsideOfBrackets, pats; | ||
var list, matchOutsideOfBrackets, pats; | ||
list = require('postcss/lib/list'); | ||
pats = { | ||
@@ -114,3 +116,8 @@ attrcc: '[^\\~|^$*\\]]*', | ||
'multibackgrounds': { | ||
unimplemented: true | ||
properties: [/^background-?/], | ||
values: [ | ||
function(value) { | ||
return list.comma(value).length > 1; | ||
} | ||
] | ||
}, | ||
@@ -142,6 +149,7 @@ 'css-table': { | ||
'css-mediaqueries': { | ||
atrules: ['@media'] | ||
atrules: ['media'] | ||
}, | ||
'css-canvas': { | ||
unimplemented: true | ||
properties: [/^background/], | ||
values: [/^-webkit-canvas/] | ||
}, | ||
@@ -155,15 +163,15 @@ 'css-reflections': { | ||
'css-featurequeries': { | ||
unimplemented: true | ||
atrules: ['supports'] | ||
}, | ||
'css-opacity': { | ||
unimplemented: true | ||
properties: ['opacity'] | ||
}, | ||
'text-overflow': { | ||
unimplemented: true | ||
properties: ['text-overflow'] | ||
}, | ||
'wordwrap': { | ||
unimplemented: true | ||
properties: ['overflow-wrap'] | ||
}, | ||
'object-fit': { | ||
unimplemented: true | ||
properties: ['object-fit'] | ||
}, | ||
@@ -170,0 +178,0 @@ 'minmaxwh': { |
@@ -17,2 +17,4 @@ var Detector, features, isFoundIn, _; | ||
return searchfor.test(str); | ||
} else if (_.isFunction(searchfor)) { | ||
return searchfor(str); | ||
} else { | ||
@@ -93,3 +95,13 @@ return (str != null ? str.indexOf(searchfor) : void 0) >= 0; | ||
Detector.prototype.atrule = function(atrule, cb) { | ||
console.warn("@-rule unimplemented!"); | ||
var data, feat, _ref, _ref1; | ||
_ref = this.features; | ||
for (feat in _ref) { | ||
data = _ref[feat]; | ||
if (_.find((_ref1 = data.atrules) != null ? _ref1 : [], isFoundIn(atrule.name))) { | ||
cb({ | ||
usage: atrule, | ||
feature: feat | ||
}); | ||
} | ||
} | ||
return this.process(atrule, cb); | ||
@@ -96,0 +108,0 @@ }; |
{ | ||
"name": "doiuse", | ||
"version": "0.1.0", | ||
"version": "0.1.1", | ||
"description": "Lint CSS for browser support against caniuse database.", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.js", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
54951
3.61%59
9.26%1030
7.29%