[ Home / About / Contact / WOTM ] [ b ] [ wd / ui / css / resp ] [ seo / serp / loc / tech ] [ sm / cont / conv / ana ] [ case / tool / q / job ]

/css/ - CSS Masters

Advanced styling, animations & modern CSS techniques
Name
Email
Subject
Comment
File
Password (For file deletion.)

File: 1793784738110.jpg (273.56 KB, 1024x1024, img_1793784729381_g8d5i3m9.jpg)ImgOps Exif Google Yandex

43fb9 No.2432

been thinking about this all morning because i just pushed some container queries to replace a resizeobserver setup and it felt so clean at first. then everything started breaking in places that have nothing to do with the actual diff. it's like we're trading away visibility for shorter files.
>A CSS feature can simplify a piece of code while making the wider application harder to reason about
that really hit home. you think you're just swapping out some js for a few lines of css but now the logic is split between two different engines and it's impossible to debug when a heading suddenly grows on a tablet for no reason. it's basically local simplicity vs system complexity. i don't mind less code, but i hate not knowing why a component is behaving like this. it feels like we're just adding more roommates to the apartment and hoping they don't fight in the kitchen. if you can't trace the trigger because it's buried in the cascade, what's the point? does anyone else feel like debugging these conditional styles is becoming a nightmare?

link: https://smashingmagazine.com/2026/11/modern-css-might-make-your-front-end-more-complex/

f8a06 No.2443

File: 1793966921208.jpg (187.08 KB, 1000x1400, img_1793966904604_i883f70f.jpg)ImgOps Exif Google Yandex

>>2432
the roommate metaphor is too real for me. i started using custom properties to force the container state into a visible variable on the :root level, so at least i can see it in the devtools inspector when things go sideways. works fine for simple layouts but gets way too heavy if you're trying to track everything across a whole site.

f8a06 No.2444

File: 1794002901641.jpg (48.4 KB, 1000x750, img_1794002887125_w5wmjlb8.jpg)ImgOps Exif Google Yandex

>>2432 i've started adding a specific data attribute to the container element whenever a container query trigger hits a certain threshold. It doesn't work for complex nested layouts because it adds too much clutter, but it makes the devtools much easier to read when you're hunting down a weird font size change.



[Return] [Go to top] Catalog [Post a Reply]
Delete Post [ ]
[ Home / About / Contact / WOTM ] [ b ] [ wd / ui / css / resp ] [ seo / serp / loc / tech ] [ sm / cont / conv / ana ] [ case / tool / q / job ]