this post was submitted on 30 Jun 2025
412 points (97.9% liked)

Programmer Humor

24628 readers
840 users here now

Welcome to Programmer Humor!

This is a place where you can post jokes, memes, humor, etc. related to programming!

For sharing awful code theres also Programming Horror.

Rules

founded 2 years ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
[–] [email protected] 24 points 21 hours ago (5 children)

Which CSS framework is it that puts this shit everywhere?

That one can die in a fire.

[–] [email protected] 19 points 20 hours ago (1 children)

fun fact: This isn’t any one specific CSS framework's doing but rather part of how JS UI libraries handle scoped CSS. When you have for example two components that have similar CSS, like one component sets button to color green, another component sets button to blue, then the compiler does this kinda thing because "real" CSS doesn’t support scoping.

So in the above example you'd get button class abcd and button class bcde.

[–] [email protected] 3 points 19 hours ago* (last edited 19 hours ago)

How *some JS UI libraries handle scoped CSS. Vue for example uses data- attributes instead.

load more comments (3 replies)