ExCSS icon indicating copy to clipboard operation
ExCSS copied to clipboard

Can it be used to validate and normalize CSS?

Open Nefcanto opened this issue 1 year ago • 0 comments

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;
}

Nefcanto avatar Oct 07 '24 14:10 Nefcanto