stylecow-plugin-matches
Advanced tools
Comparing version 1.2.0 to 2.0.0
@@ -6,8 +6,8 @@ module.exports = function (stylecow) { | ||
":matches": function (fn) { | ||
var selector = fn.ancestor('Selector'); | ||
var value = selector.name; | ||
var selector = fn.parent({type: 'Selector'}); | ||
var value = selector.toString(); | ||
var search = fn.toString(); | ||
fn.content.forEach(function (replace) { | ||
selector.insertBefore(stylecow.Selector.create(value.replace(search, replace))); | ||
fn.getContent().forEach(function (replace) { | ||
selector.before(new stylecow.Selector()).setContent(value.replace(search, replace)); | ||
}); | ||
@@ -14,0 +14,0 @@ |
{ | ||
"name": "stylecow-plugin-matches", | ||
"description": "Stylecow plugin to add support for :matches() selector function to all browsers", | ||
"version": "1.2.0", | ||
"version": "2.0.0", | ||
"author": "Oscar Otero <oom@oscarotero.com>", | ||
@@ -6,0 +6,0 @@ "homepage": "https://github.com/stylecow/stylecow-plugin-matches", |
stylecow plugin matches | ||
======================= | ||
Stylecow plugin to add support for :matches() selector function to all browsers | ||
Stylecow plugin to add support for the selector `:matches()` in all browsers | ||
More info about :matches() (available in CSS Selectors Level 4): http://www.w3.org/TR/2011/WD-selectors4-20110929/#matches | ||
More info [available in CSS Selectors Level 4](http://www.w3.org/TR/2011/WD-selectors4-20110929/#matches) | ||
@@ -8,0 +8,0 @@ You write: |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
3103