Nice to see encouragement to avoid javascript :). Dropdowns that require javascript are particularly common (and unnecessary).
It seems on Firefox, focus-visible only appears when tabbing, not when using the space key to toggle. Not sure why that is.