In this episode, I discuss getContextAttributes(), and briefly mention the attributes:
alpha
depth
stencil
antialias
premultipliedAlpha
preserveDrawingBuffer
preferLowPowerToHighPerformance
failIfMajorPerformanceCaveat
For details on each of these attributes, see:
https://github.com/davidwparker/progr...
https://www.khronos.org/registry/webg...