Hacker News new | ask | show | jobs
by bijection 337 days ago
I was just starting a comment on this but you beat me to it! I believe

  contain: strict;
on the parent element would have been sufficient here.
1 comments

I tested `contain: strict` on their color changing SVG and didn't see any difference. Profiler says it's still doing layout.
You tried the fix for height recalculation on the SVG that is changing fill and stroke and it didn't fix the issue? I wonder why
A lot of armchair suggestions here, but no benchmarks provided. Thanks for actually testing!