#Development #Guides
Cascade Layers vs. BEM vs. utility classes · Approaches to control CSS specificity https://ilo.im/164s5a
_____
#CSS #Specificity #CascadeLayers #UtilityClasses #BEM #Browser #WebDev #Frontend #Comparisons
#Development #Guides
Cascade Layers vs. BEM vs. utility classes · Approaches to control CSS specificity https://ilo.im/164s5a
_____
#CSS #Specificity #CascadeLayers #UtilityClasses #BEM #Browser #WebDev #Frontend #Comparisons
#Development #Approaches
Your CSS reset should be layered · Why and how to use cascade layers for CSS resets https://ilo.im/160ozp
_____
#CSS #CssReset #CascadeLayers #Specificity #BrowserSupport #Browser #WebDev #Frontend
I'm of the opinion that the #cascade was a mistake, for the same reason that #OOP was a mistake; #inheritance is too implicit. How much time have we wasted with things like #CSS resets, !important, #BEM, etc just faffing about with #specificity trying to make styles apply? For what? A few bytes of duplication?
Worked with an #acting #coaching client on breaking down the 16 beats of an emotionally pitched scene to have specifics to build on. In almost all cases, #specificity beats out vagueness. Excited to see what can be built in the arc.
Misconceptions about CSS Specificity
To remove some of the confusion, here’s a list of misconceptions about Specificity in CSS …
https://www.bram.us/2024/05/05/misconceptions-about-css-specificity/