DEV Community

Discussion on: If you could start over from scratch, how would CSS work?

Collapse
 
lexlohr profile image
Alex Lohr

I like most of it, the cascade, the powerful selectors, the attributes. I would make only one change Instead of !important, I would have created pseudo selectors to increase or decrease specificy :+id.class.tag and :-id.class.tag, where id, class and tag are optional representations of the amount of increase and decrease. I also would have made the specificy of inline styles that of an id selector, so that it could be easily overwritten with :+1.0.1