Re:Brilliant use of CSS drop shadows
by bzbarsky on Thursday February 17, 2011 @01:48PM
(#2232222)
One other thing. The expensive thing with shadows is not just the compositing, but recomputing the shadow itself. Any time something changes about the thing that's casting the shadow you have to rebuild the shadow. If the change is of a kind the GPU knows about (polygon moved or rotated or whatnot), it might be doable on the GPU. If it's something like "the width changed and the text layout has to be redone", you lose.
[ Parent
| on HN ]
There are no comments on this comment yet.