How to make fullscreen work with SDL3 emscripten?

Hello, I have compiled SDL3 Hello, World! program with emscripten and it runs correctly in the browser -

but when I enter fullscreen with F11, the canvas goes fully black-

and when I exit fullscreen with anther F11, the canvas becomes fully white. I have observed this problem on two blink engine based browsers - Edge and DuckDuckGo and on two computers with different graphics hardware. I have tested with a simple HTML canvas (no SDL, no emscripten) and F11 full screen worked correctly. I also tested a Hello, World! c program compiled with emscripten but without SDL3 and F11 also worked normally. Does anyone know to make this fullscreen function work with SDL3 emscripten?

Shane