I run a test for my WebGL application using Chromium.
I give the argument --use-gl=egl to Chromium so it gets the GPU acceleration in headless mode.
--use-gl=egl