Skip to content

Support CSS selector pseudo-classes #135

@stroiman

Description

@stroiman

Pseudo-selectors, like :focus, :focus-within, etc are not implemented.

Gost-DOM uses https://github.com/gost-dom/css to implement CSS selectors. This is derived from https://github.com/ericchiang/css - which doesn't appear to be maintained.

TODO: Research what the current library supports.

It's entirely possible that this library doesn't support pseudo-selectors at all, but it's possible it could implement classes such as :odd/:nth. It wouldn't know anything about :focus - maybe the caller can supply that context? Newer selectors, like :has are unlikely to work (AFAIK, this has been added since the library was last updated)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    Status

    No status

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions