<!-- Do not edit this file. It is automatically generated by API Documenter. -->

[Home](./index.md) &gt; [@csstools/selector-resolve-nested](./selector-resolve-nested.md) &gt; [resolveNestedSelector](./selector-resolve-nested.resolvenestedselector.md)

## resolveNestedSelector() function

Resolve a nested selector against a given parent selector.

**Signature:**

```typescript
export declare function resolveNestedSelector(selector: Root, parentSelector: Root, options?: ResolveOptions): Root;
```

## Parameters

<table><thead><tr><th>

Parameter


</th><th>

Type


</th><th>

Description


</th></tr></thead>
<tbody><tr><td>

selector


</td><td>

Root


</td><td>

The selector to resolve.


</td></tr>
<tr><td>

parentSelector


</td><td>

Root


</td><td>

The parent selector to resolve against.


</td></tr>
<tr><td>

options


</td><td>

[ResolveOptions](./selector-resolve-nested.resolveoptions.md)


</td><td>

_(Optional)_ Change how resolving happens.


</td></tr>
</tbody></table>

**Returns:**

Root

The resolved selector.

