Subject: | CSS::Tiny reorders rules |
The order of CSS is important in some circumstances and currently
CSS::Tiny changes the order of the rules as it reads them in and then
writes them out (in reverse alphabetical order). Order needs to be
preserved or some styles could be broken. For instance, in this example:
<html>
<head>
<style type="text/css">
.bar { color: blue }
.foo { color: red }
</style>
<body>
<h1 class="foo bar">Howdy!</h1>
</body>
</html>
If you reverse the order of those rules you'll get different results.
This is a simple contrived example, but I hope it conveys the point that
order is important and if lost, then the stylesheet is not the same.
I don't think this would be hard to fix and if you're willing to give me
(Michael Peters) svn access I can make these changes.