Skip to content

Commit e0fb815

Browse files
committed
tests: test_html5: test emscripten_set_element_style
1 parent 721e6a1 commit e0fb815

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

tests/test_html5.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -421,6 +421,8 @@ int main()
421421
emscripten_get_screen_size(&width, &height);
422422
printf("Current screen size: %dx%d\n", width, height);
423423

424+
emscripten_set_element_style("canvas", "cursor", "crosshair");
425+
424426
/* For the events to function, one must either call emscripten_set_main_loop or enable Module.noExitRuntime by some other means.
425427
Otherwise the application will exit after leaving main(), and the atexit handlers will clean up all event hooks (by design). */
426428
EM_ASM(noExitRuntime = true);

0 commit comments

Comments
 (0)