Which is the default for GTK4 since r263888. The problem is that RenderTheme::paint() returns early if the given GraphicsContext doesn't have a platform context, assuming all RenderTheme implementations paint directly to the platform context.
Created attachment 403953 [details] Patch
Committed r264298: <https://trac.webkit.org/changeset/264298>