3 ms·
Automatic inlining is used in some contexts, notably emails where everything else works barely-if-at-all. The biggest loss of using inline styles everywhere wo
by al2o3cr 12y ago
Automatic inlining is used in some contexts, notably emails where everything else works barely-if-at-all.
The biggest loss of using inline styles everywhere would be for instances where the appearance of the DOM is changing dynamically. Instead of just saying "hey, make that node have the class 'shinyWidget'", you'd wind up needing to specify all the styles that shinyWidget includes - and then reliably un-apply them when the node was no longer shiny.
Bonus fun if two things want to change the style of a single element, though that's still sometimes a headache with CSS and specificity rules.