The ImageBuffer should inherit the accelerated bit from the context it will eventually be painted into. However, doing so breaks some tests when run with --accelerated-drawing on, and clearly also breaks these tests in Safari. Needs more investigation (and possibly bugs filed on other components).
The only one I found in LayoutTests/svg was svg/gradients/spreadMethodClose2.svg which looks like a bug with accelerated drawing.
But svg/gradients/spreadMethodClose2.svg has different behavior in Chrome and Firefox (both of which show blues) so it's not clear what's going on.
Created attachment 441501 [details] Patch
It seems this r+ patch didn't landed and we have FIXME about it as well: https://github.com/WebKit/WebKit/blob/ce878379210ced398d994217e26519b433761149/Source/WebCore/rendering/svg/RenderSVGResourceClipper.cpp#L171 Just wanted to update. Thanks!
NOTE - this patch also still work on WebKit ToT (tested locally).