CSS tidy deletes code

Post anything about TopStyle here. NOTE: TopStyle has been discontinued.

Moderator: TopStyle Support

Post Reply
JoeB
Rank II - Novice
Rank II - Novice
Posts: 30
Joined: Wed Nov 21, 2012 4:14 pm

CSS tidy deletes code

Post by JoeB » Sun Mar 17, 2013 12:50 pm

#asdf {
background: -moz-linear-gradient(top, #903193 0%, #cb6bab 100%);
background: -o-linear-gradient(top, #903193 0%, #cb6bab 100%);
background: -ms-linear-gradient(top, #903193 0%, #cb6bab 100%);

}


Doing a CSS tidy (default settings) on the above produces this:

#asdf {
background:0;
}


Quite clearly that is not the right answer.

User avatar
TopStyle Support
Rank VI - Professional
Rank VI - Professional
Posts: 507
Joined: Sat Jun 13, 2009 12:38 pm
Contact:

Re: CSS tidy deletes code

Post by TopStyle Support » Mon Mar 18, 2013 8:05 am

Apparently, CSS Tidy does not understand about CSS gradients :(

I'm afraid CSS Tidy is a third-party module and as such it is mostly out of my control.

Have you tried Style Sweeper instead?

Post Reply