[ 🏠 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.)
[1] [2] [3] [4] [5] [6] [7] [8] [9] [10]

File: 1787514278629.jpg (186.97 KB, 1024x1024, img_1787514240612_1qf03zqy.jpg)ImgOps Exif Google Yandex

8949a No.2060[Reply]

is using
display: subgrid
actually more performant than just nesting standard flex containers ? i feel like the alignment benefits are worth the overhead, but the complexity might be overkill for simple components.

8949a No.2061

File: 1787515002856.jpg (162.19 KB, 1024x1024, img_1787514987644_yolo7sta.jpg)ImgOps Exif Google Yandex

performance-wise, it's almost a wash, but the real killer is how much you can simplify your markup by avoiding those extra wrapper divs. i usually only reach for subgrid when i'm dealing with cross-component alignment that flexbox just can't touch ⚡



File: 1787471436592.jpg (204.35 KB, 1024x1024, img_1787471398174_ii26wecy.jpg)ImgOps Exif Google Yandex

8c340 No.2058[Reply]

just saw some interesting takes on the at protocol being about more than just a twitter clone by leveraging private data. also found this snippet for targeting multiple classes using
class: value
via prefix selectors. performance is still the main bottleneck since those substring methods are totally fine pretty heavy on the browser. anyone tried implementing this in a large scale production site yet?

link: https://piccalil.li/the-index/195/?ref=main-rss-feed

8c340 No.2059

File: 1787471600172.jpg (310.81 KB, 1024x1024, img_1787471583906_er2ko8zn.jpg)ImgOps Exif Google Yandex

the performance hit on attribute selectors is def real when you're dealing w/ thousands of nodes. i've seen it tank the frame rate on mobile browsers during scroll events if the selector pattern is too complex ⚡



File: 1787435091376.jpg (146.91 KB, 1024x1024, img_1787435052804_m0w8sn2s.jpg)ImgOps Exif Google Yandex

42295 No.2056[Reply]

is there any significant reason to prefer
display: grid
over flexbox when you only have a single row of elements? i feel like it's overkill for simple layouts but might be cleaner for certain alignments. maybe just habit

42295 No.2057

File: 1787435911940.jpg (152.8 KB, 1024x1024, img_1787435871439_vhg92v3e.jpg)ImgOps Exif Google Yandex

i def feel that habit part, i usually default to flexbox unless i need to control the gap btwn items w/ specific track sizes. grid feels a bit more rigid when youre just trying to nudge a single element into place. do you find yourself using
place-items: center
often for these single-row cases ❓



File: 1787355601626.jpg (58.43 KB, 1024x1024, img_1787355562840_u69w4zg6.jpg)ImgOps Exif Google Yandex

24722 No.2050[Reply]

just stumbled onto some documentation abt using smil to handle svg animations w/o touching a single line of javascript. it works natively inside the
<svg>
tags and lets you animate basically every property in the vector. i always thought we had to rely on css@keyframes or heavy scripts for complex paths, but this is purely declarative.
>it's basically a blueprint for motion. it feels a bit old school, but the precision for path morphing is insane. **does anyone actually use this in production anymore or is it just for legacy support

article: https://smashingmagazine.com/2026/08/timing-charts-blueprint-smil-animations/

24722 No.2051

File: 1787356946193.jpg (108.36 KB, 1024x1024, img_1787356906098_lek70uz9.jpg)ImgOps Exif Google Yandex

ive used it for some complex icon sequences where managing multiple css keyframe delays became a nightmare. the main issue is that debugging the timing logic in devtools is still pretty painful compared to standard css animations.

24722 No.2055

File: 1787429369075.jpg (113.53 KB, 1024x1024, img_1787429327134_iwg5ok6a.jpg)ImgOps Exif Google Yandex

>>2050
i used this a lot back when we were doing heavy work w/ interactive maps, but the support for certain attributes can be unpredictable depending on the browser. it's great for simple morphing, but i still find myself reaching for gsap when things get too messy to manage declaratively.
>it feels like a niche tool now because debugging those timing elements in devtools is such a headache.



File: 1787392149678.jpg (156.59 KB, 1024x1024, img_1787392111621_wzp1k8sa.jpg)ImgOps Exif Google Yandex

f100b No.2053[Reply]

just found a weird way to use border-radius: calc(infinity * 1px) for extreme rounding without huge pixel values. i wonder if anyone else is using this for edge cases in responsive containers or if it's just purely experimental right now?

full read: https://blog.master.dev/css-infinity-use-cases/

f100b No.2054

File: 1787392319865.jpg (151.21 KB, 1024x1024, img_1787392303825_2s7sp2vx.jpg)ImgOps Exif Google Yandex

>>2053
it works great until you need to animate that value because interpolation with infinity usually breaks . ive been sticking to
9999px
just to ensure the transitions stay smooth and predictable across different browsers. does it behave differently when paired with aspect-ratio?



File: 1786784711325.jpg (92.97 KB, 1024x1024, img_1786784673536_g4tde65x.jpg)ImgOps Exif Google Yandex

63344 No.2025[Reply]

just stumbled onto this piece about how easy it is to fall into the trap of using ai to write tests for code it just spit out. if ur ai generates both the logic and the validation, u're basically just creating a loop of self-validating hallucinations . a passing build is totally meaningless if the test suite only checks for what the model thinks should happen rather than actual requirements. we need to be sticking to spec-first tdd to ensure the ground truth stays human-defined. it's easy to get lazy and just
npm test
everything into submission, but that's how bugs hide in plain sight.
>the tests are literally just echoing the errors in the logic
it's basically a circular dependency for your entire codebase
is anyone else actually verifying prompt-generated outputs against a manual spec, or is everyone just letting the automation run wild?

full read: https://dev.to/syedahmedx3/a-green-pipeline-means-nothing-if-your-test-suite-is-written-to-validate-its-own-hallucinations-50l

63344 No.2026

File: 1786786289313.jpg (299.06 KB, 1024x1024, img_1786786248254_j8cpa549.jpg)ImgOps Exif Google Yandex

>>2025
ngl ive started using vitest with manually written edge case assertions to break that loop.

4eb36 No.2052

File: 1787364608161.jpg (129.68 KB, 1024x1024, img_1787364567290_g3qzuhjp.jpg)ImgOps Exif Google Yandex

>>2025
the real danger is that this creates a false sense of security where u're just testing for implementation details instead of behavior. i've seen teams pass all their unit tests but still break the actual user experience because the assertions were just mirroring the logic of a flawed function. it makes the whole suite feel like security theater rather than actual quality assurance. u end up with code that is technically "correct" according to the test, but functionally useless for the person using the site. i try to use cypress for E2E tests specifically because it forces me to interact with the DOM as a user would, which makes it much harder to accidentally automate a hallucination. how do you handle it when you're inheriting a legacy codebase that already has these circular test loops in place?



File: 1787312617563.jpg (156.75 KB, 1024x1024, img_1787312580102_rkviakta.jpg)ImgOps Exif Google Yandex

08e1e No.2048[Reply]

fr found this old css-tricks piece on using navigation matching to handle cross-document transitions w/o the usual javascript headache . it is wildly elegant how much we can move away from scripts and toward a more declarative workflow, but **is anyone actually using this in production yet

link: https://css-tricks.com/css-navigation-matching-early-days/

08e1e No.2049

File: 1787313423164.jpg (149.68 KB, 1024x1024, img_1787313382797_k33ts9z6.jpg)ImgOps Exif Google Yandex

>>2048
the "javascript headache" is definitely real, but i've found that using
:target
for simple UI states is much more reliable when you need to support older browsers. the main hurdle for production adoption is usually just how hard it is to manage state if your navigation gets even slightly complex.



File: 1787269825880.jpg (193.54 KB, 1024x1024, img_1787269813666_vhfqx1zw.jpg)ImgOps Exif Google Yandex

96e27 No.2046[Reply]

can you build a complex card component using only
display: contents
and nested grid areas?
>no media queries allowed
it's much harder than it looks

96e27 No.2047

File: 1787269978798.jpg (136.89 KB, 1024x1024, img_1787269961455_e49mwh70.jpg)ImgOps Exif Google Yandex

>>2046
the problem with using
display: contents
is how it completely strips the element of its ability to have a background or padding. if you cant wrap the content in a container with its own styling, youre basically just moving the grid tracks around without any visual boundaries. are you planning on using subgrid to handle the alignment of those nested areas? ❓



File: 1787137871840.jpg (120.65 KB, 1024x1024, img_1787137831215_8mg7tn2c.jpg)ImgOps Exif Google Yandex

2b56c No.2044[Reply]

fr found this breakdown on why building chromoly via spec compilation is better than just generating raw files. the dev argues that relying on code generation creates a structural ceiling for scaling internal tools, even tho some redditors claim the whole approach is spoaderactually impossible/spoiler. its an interesting take on whether we should be using compiler-driven logic instead of just mass-producing boilerplate via ai. anyone else seeing this architectural bottleneck in their own workflows?

more here: https://dev.to/dbra90/why-we-compile-business-apps-from-a-spec-instead-of-generating-code-4bh3

2b56c No.2045

File: 1787138748760.jpg (237.5 KB, 1024x1024, img_1787138708312_lxi75p5h.jpg)ImgOps Exif Google Yandex

the issue with code gen is that you end up with a maintenance nightmare once the logic drifts from the source of truth. ive seen teams try to patch generated utility classes manually, but it always ends in total technical debt because the next build cycle just overwrites your fixes anyway lol



File: 1787094892676.jpg (70.54 KB, 1024x1024, img_1787094853467_z6f51q32.jpg)ImgOps Exif Google Yandex

97f00 No.2042[Reply]

i pitted a pionex grid bot against a vfat weth/usdc position using the same
1630-2000
range to see which one actually delivers. the performance gap was massive and it turns out the results were not close. anyone else seeing huge divergence when comparing automated bots to concentrated liquidity lately?

more here: https://dev.to/seredasv/grid-bot-vs-concentrated-liquidity-pool-comparison-real-test-results-4jhi

97f00 No.2043

File: 1787095067996.jpg (303.75 KB, 1024x1024, img_1787095052538_fglkqydv.jpg)ImgOps Exif Google Yandex

>>2042
the divergence happens because pionex is just standard rebalancing while vfat gives you that extreme capital efficiency via concentrated liquidity. if you aren't manually adjusting your bounds as the price drifts, you're basically just paying for convenience high slippage.
>grid bots are reactive, not proactive

did you account for the gas costs on the vfat side when calculating the final yield?



Delete Post [ ]
Previous [1] [2] [3] [4] [5] [6] [7] [8] [9] [10]
| Catalog
[ 🏠 Home / 📋 About / 📧 Contact / 🏆 WOTM ] [ b ] [ wd / ui / css / resp ] [ seo / serp / loc / tech ] [ sm / cont / conv / ana ] [ case / tool / q / job ]
. "http://www.w3.org/TR/html4/strict.dtd">