Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
Nefcanto opened this issue Oct 7, 2024 · 0 comments
Open

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

Nefcanto opened this issue Oct 7, 2024 · 0 comments

Comments

@Nefcanto
Copy link

Nefcanto commented Oct 7, 2024

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;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant