Skip to content

Can it be used to validate and normalize CSS? #179

@Nefcanto

Description

@Nefcanto

Since I did not find any documentation, I had to ask here.

I have this CSS:

:root { 
     --color1: E38082
 --color11: 0, 0, 0 ; 
 --color12: 202, 200, 196 ;                   
 --color2: 202, 196, 196              ; 
 --color21: 190                     , 187, 187 ; 
 --color22: 202, 196, 196 ; 
 --color3: 13, 13, 13 ; 
 --color4: 0, 0, 0 ; 
 --color5: 0, 0, 0 ; 
 --color51: 34, 34, 34 ;
}

As you can see it has some invalid lines (line 2) and some useless spaces.

Can I use your library to validate and normalize CSS?

The final result should be lie this:

:root { 
    --color1: E38082;
    --color11: 0, 0, 0;
    --color12: 202, 200, 196;
    --color2: 202, 196, 196;
    --color21: 190, 187, 187;
    --color22: 202, 196, 196;
    --color3: 13, 13, 13;
    --color4: 0, 0, 0;
    --color5: 0, 0, 0;
    --color51: 34, 34, 34;
}

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