Skip to content

Rule system cannot express nested/child selectors #23

@goulvenclech

Description

@goulvenclech

The Rule enum (Static, Pattern, Dynamic) only supports generating property: value CSS entries applied directly to the matched element. It cannot express rules requiring nested or child selectors (e.g. & > :not(:last-child)).

Blocked utilities

  • divide-* (divide-solid, divide-dashed, etc.) — requires & > :not(:last-child) { border-style: ... }
  • space-x-* / space-y-* — requires & > :not(:last-child) { margin-...: ... }

Proposed direction

Extend the Rule system to support rules with custom selectors wrapping the generated CSS entries — either via a new Rule variant or by extending CssEntries.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions