fn
matchBlock
The first block rule an element satisfies, in priority order.
Signature
ts
export function matchBlock(el: HTMLElement, rules: CompiledRules): BlockHit | null{ ... }Parameters
| Parameter | Type | Description |
|---|---|---|
el | HTMLElement | — |
rules | CompiledRules | — |
Returns
BlockHit | null