improved CSS parser