Everything is in the gif
I had an idea that the fence would colide with the player while in a composter and it worked
(Also works with cauldrons)
Linked issues
Attachments
Comments 2
Seems to be intended, see MC-108673 where the opposite behavior was described as bug.
Fences are 1.5 blocks high.