Unfortunately I didn't test this bug fully, but when I was standing under leaves (Dark Oak), and collecting XP (from villager trading), the rain would appear on the screen while collecting XP. I do not know if it works for transparent blocks like glass or slabs, but it is clearly an unintended bug. Fortunately it should be an easy fix!
Related issues
Comments

Thank you for your report!
We're tracking this issue in MC-163575, so this ticket is being resolved and linked as a duplicate.
If you would like to add a vote and any extra information to the main ticket it would be appreciated.
If you haven't already, you might like to make use of the search feature to see if the issue has already been mentioned.
Quick Links:
📓 Issue Guidelines – 💬 Community Support – 📧 Customer Support – ✍️ Feedback and Suggestions – 📖 Game Wiki