Skip to content

Consider migrating to Sass's AST for CSS #8290

Closed as not planned
Closed as not planned
@Snugug

Description

@Snugug

Describe the problem

css-tree currently is lagging behind in support for key CSS features, like container queries and is not spec compliant in other semi-common corner cases (like calc in @at-rules). It may be worth considering an alternative CSS AST

Describe the proposed solution

Sass provides an AST, with Sass itself having a stellar track record of ensuring full CSS compatibility, is very well maintained, has a history of being very well maintained, and (in the general case) can reproduce 1:1 any valid input CSS without modification (meaning it shouldn't affect any current valid CSS that would hit its path). It would be interesting to consider migrating Svelte's current CSS parsing needs to Sass's AST.

Alternatives considered

Soft-forking css-tree (like is happening in the linked PR), hard-forking css-tree to add the required features and functionality, looking into other CSS utilities, or doing nothing, although none of the other solutions appears to offer the same broad CSS language support as Sass does.

Importance

would make my life easier

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions