match_selector: Match a selector to a container stack

View source: R/themes.R

match_selectorR Documentation

Match a selector to a container stack

Description

Match a selector to a container stack

Usage

match_selector(sels, cnts)

Arguments

sels

A list of selector nodes.

cnts

A list of container nodes.

The last selector in the list must match the last container, so we do the matching from the back. This is because we use this function to calculate the style of newly encountered containers.


cli documentation built on March 31, 2023, 9:04 p.m.