Shadow Palette Generator
joshwcomeau.com
joshwcomeau.com
Having many shadows on an object makes this path much longer. I can imagine adding this to a page could easily run out of GPU RAM and end up having to discard buffers which later need to be re-rendered.
End result:. Hot slow phone.
I'd like to at least see a benchmark of this effect before suggesting multiple box shadows.
I suspect the complexity is that some objects can be transparent, and then their shadows get complex.
There might still be cases where a particular optimization doesn’t work and the browser falls back to a buffer.
but yes it looks nice :-)
in other words, not everyone has an iphone 13 or other android-based extremely high-end mobile device at their disposal.