Skip to content

Latest commit

 

History

History
30 lines (23 loc) · 480 Bytes

README.md

File metadata and controls

30 lines (23 loc) · 480 Bytes

rework-matches

An implementation of the :matches pseudo-selector for rework, based on CSS Selectors Level 4.

Installation

npm install rework-matches

Usage

a:matches(:hover, :active, :focus) > :matches(span, div) {
  color: red;
}

..becomes..

a:hover > span,
a:hover > div,
a:active > span,
a:active > div,
a:focus > span,
a:focus > div {
  color: red;
}