Skip to content

tree.match and complex selectors #399

@cossssmin

Description

@cossssmin

In developing posthtml-postcss-inline, I reached the point where it can't inline complex CSS selectors, because posthtml-match-helper doesn't support that. The problem is discussed here, and it was concluded that it's a feature that should be implemented in the tree.match() API method of PostHTML.

We need a way to match elements based on complex CSS selectors.

For example, imagine this with posthtml-match-helper:

matchHelper("div > span")

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions