News for hackers. Stuff that matters.
Re:Future CSS: State Container Queries by quickthrower2 on Thursday June 29, 2023 @06:49AM (#36518762)
Then part of me feels like CSS shouldn't do the stuck thing at all. That's a job for scripting. There are unlimited behaviours like this you could try to account for declaratively but some JS will do it nicely. The thing about adding this to CSS is you are making CSS more complex with redraw loops as it needs to keep reconfiguring stuff as it gazes into thousands of it's own navels.
Re:Future CSS: State Container Queries by ttfkam on Thursday June 29, 2023 @10:06AM (#36520519)
Ironic since the reason sticky exists was because developers were sick of managing it in JS. If you truly believe doing it in JS is better, feel free to do it in JS. No one is stopping you.