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

[Home](./index.md) &gt; [@csstools/utilities](./utilities.md) &gt; [hasSupportsAtRuleAncestor](./utilities.hassupportsatruleancestor.md)

## hasSupportsAtRuleAncestor() function

Check if a node has a `@supports` at-rule ancestor with a given regex in its params.

**Signature:**

```typescript
export declare function hasSupportsAtRuleAncestor(node: Node, predicate: {
    test(str: string): boolean;
}): boolean;
```

## Parameters

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

Parameter


</th><th>

Type


</th><th>

Description


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

node


</td><td>

Node


</td><td>

The node to check


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

predicate


</td><td>

{ test(str: string): boolean; }


</td><td>

The test to match against the `@supports` at-rule's params


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

**Returns:**

boolean

{<!-- -->boolean<!-- -->}

