my stylesheets tend to have a lot of redundancy. for example,
/* example one: different attributes */
div#main_work > div.main_work table.data td span.rating,
div#main_work > div.main_work table.data td span.follow
{ white-space: nowrap; vertical-align: center; }
/* example two: same upstream, different downstream */
div#main_work > div.main_work > form table,
div#main_work > div.main_work > table,
div#main_work > div.main_work div table
{ width: 100%; margin: 0px; -moz-box-sizing: border-box; box-sizing: border-box; }
is there a syntactically correct way to collapse this?
No, that’s just how it is. You could alleviate some troubles by being less specific about things, especially in ID selectors:
And you can probably reduce this further. Try to be concise and obvious about the intent. As another alternative, you might try LESS stylesheets.