Rain fog disappears noticeably when entering a well-lit roofed area (as intended, I suppose). But underneath some blocks the rain fog still appears, whilst under other blocks the rain does not appear.
I don’t know that these blocks have in common but I’ve tested a few and here are some I think might interact with fog incorrectly:
rain fog still seems to appear when player is under
oak trapdoor (open and closed)
carpet
glass
rain fog does not seem to appear when player is under
cobwebs
leaves
There may be more blocks in this list, I have not tested all by any means.
Environment
In a larger roofed of-area, when the roof consists of/contains this block
Rain fog depends on skylight.