Some update. The hardware acceleration problem was solved by using open drivers instead of proprietary i.e from this:
sudo amdgpu-install --usecase=workstation,rocm,hip -y --vulkan=pro --opencl=legacy
to
sudo amdgpu-install --usecase=graphics,rocm,hip -y --vulkan=amdvlk --opencl=rocr
However webgpu does still not work, but that seems to be related to development status of webgpu on the Linux version of the browsers
According to https://github.com/gpuweb/gpuweb/wiki/Implementation-Status it is only supported in nightly builds of browers like Chrome or Firefox. I tried Firefox nightly and webgpu still failed but I do not believe it is related to AMD drivers.