you are viewing a single comment's thread
view the rest of the comments
[–] 1 point 3 weeks ago*

Could you achieve the same thing with media queries?

Not always. Suppose you wanted different sets of colors (per source) on mobile vs desktop where the screen/media size was irrelevant, you'd need a way to attach classes to individual source elements, but they don't accept classes.

it depends if you have users with very old browsers or devices

I was more mentioning that because of developers not always using the latest browser features.

  • source
  • parent