DEV Community

Discussion on: 100 Bytes of CSS to look great everywhere

Collapse
 
tusharsadhwani profile image
Tushar Sadhwani

This is clean and simple, I like it a lot.

Have you considered using :root instead of html ? It can cover more edge cases.

Collapse
 
swyx profile image
swyx

you know ive never used :root before! sounds cool. what kind of edge cases?

Collapse
 
tusharsadhwani profile image
Tushar Sadhwani • Edited

Such as a document that doesn't have an <html>, for example.

Thread Thread
 
tusharsadhwani profile image
Tushar Sadhwani

lol. dev.to commented out my html