Skip to content

css where()/is() should fail silently #4232

@mbrevda

Description

@mbrevda

It would seem that where() and is() are allowed to fail silently, but esbuild throws an error if they don't receive any arguments.

According to the spec, these accept a forgiving-selector-list which "parses each selector in the list individually, simply ignoring ones that fail to parse". based on this, it would seem that anything (or nothing) is a valid argument.

Thoughts?

Playground example

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions