Skip to content

Serialize AST according to CSSOM #52

@Zirro

Description

@Zirro

The CSS Object Model specification includes many rules on how to serialize CSS in a consistent way. For example, the current translate() output p{color:green} would become p { color: green; } using the CSSOM rules. It even covers parts like how to serialize a string.

I recently started working on an implementation of the CSSOM and would like to use CSSTree as the parser, thanks to the priority you put on parsing standard syntax. I'll probably write my own generate functions if you decline, but I figured I would ask if you want to make CSSTree serialize CSS according to CSSOM by default? Thanks!

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