CSS parsing and rule modification