![]() | Name | Last modified | Size | Description |
---|---|---|---|---|
![]() | Parent Directory | - | ||
![]() | dist/ | 9 months ago | - | |
![]() | CHANGELOG.md | 9 months ago | 493 | |
![]() | LICENSE.md | 9 months ago | 930 | |
![]() | README.md | 9 months ago | 1.1K | |
![]() | package.json | 9 months ago | 1.8K |
Add Selector Resolve Nested to your project:
npm install @csstools/selector-resolve-nested --save-dev
import { resolveNestedSelector } from '@csstools/selector-resolve-nested';
import parser from 'postcss-selector-parser';
const a = parser().astSync('.foo &');
const b = parser().astSync('.bar');
resolveNestedSelector(a, b); // '.foo .bar'