Describe the bug
https://openlayers.org/en/latest/examples/jsts.html shows buffers around lines. It says that those buffers have a radius of 40 meters.
In reality the buffers have a radius of 40 units of EPSG:3857 which are called meters but are not corresponding to actual, real world meters. They are highly distorted pretty much everywhere on the planet.
https://gis.stackexchange.com/questions/329213/using-meters-to-buffer-with-jsts mentioned this but sadly the user filed no bug.
They also provided an image: https://i.stack.imgur.com/tIoBJ.png
To fix this the example would need to use a projection like UTM.