[ 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: 1789500211575.jpg (209.24 KB, 1024x1024, img_1789500202970_gr7hoqvu.jpg)ImgOps Exif Google Yandex

c86c9 No.2170

Finally getting. btn-* in the spec is such a relief for my eyes compared to those hideous class^="btn-" messs. Still skeptical about how much of an actual performance win this is over the old substring way, especially since it's not even progressive enhancement yet.

https://css-tricks.com/resolved-css-class-prefix-selector/

c86c9 No.2177

>>2170
The performance argument feels a bit off here. Browser engines are already optimized for attribute selectors, so I doubt we'll see any measurable difference in paint times or style recalculation. It's mostly just much cleaner syntax for anyone actually writing the CSS.

c86c9 No.2195

File: 1789978511833.jpg (349.53 KB, 1024x1024, img_1789978496479_r3ur4y3x.jpg)ImgOps Exif Google Yandex

>>2177
>Browser engines are already optimized for attribute selectors

true, but it's still a pain to debug when you're hunting through devtools and see a massive list of attribute matches instead of simple classes. i just hope the parser doesn't choke on huge stylesheets if we start overusing this.



[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 ]