Socket
Socket
Sign inDemoInstall

stylecow-plugin-matches

Package Overview
Dependencies
0
Maintainers
1
Versions
9
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    stylecow-plugin-matches

Stylecow plugin to add support for :matches() selector function to all browsers


Version published
Weekly downloads
5
increased by150%
Maintainers
1
Install size
11.3 kB
Created
Weekly downloads
 

Readme

Source

stylecow plugin matches

Build Status

Stylecow plugin to add support for the selector :matches() in all browsers

More info available in CSS Selectors Level 4

You write:

body :matches(p, a) {
	color: blue;
}
p {
	a :matches(span, strong) {
		color: red;
	}
}
h1 :matches(em, strong):matches(.one, .two) {
	color: yellow;
}

And stylecow converts to:

body p, body a {
	color: blue;
}
p {
	a span, a strong {
		color: red;
	}
}
h1 em.one, h1 em.two, h1 strong.one, h1 strong.two {
	color: yellow;
}

More demos in the tests folder

FAQs

Last updated on 17 Sep 2015

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc