Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
bijection
· 1y ago · 0 comments
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.
Comments
[–]
webstrand
1y ago
I tested `contain: strict` on their color changing SVG and didn't see any difference. Profiler says it's still doing layout.
[–]
DrammBA
1y ago
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
[–]
jonny_eh
1y ago
A lot of armchair suggestions here, but no benchmarks provided. Thanks for actually testing!