I guess this exists at some places
Plus a mechanism that prevents the doors from opening too fast outwards (so they won't hit anyone)
edit: I seem to be misinformed about firecode. I may also be over extrapolating from what I know about bedroom doors as well. The general idea of obstruction is more valid there. It seems the more common reason bathrooms would not be allowed to swing outward is obstructing the minimum width of hallways.
From the 2018 international building code (which is what the US building code is based on): https://up.codes/viewer/illinois/ibc-2018/chapter/10/means-o...
> it is the International Building Code ... used in multiple locations worldwide, including the 15 countries of the Caribbean Community and Common Market (CARICOM), Jamaica, and Georgia. Furthermore, the IBC has served as the basis for legislative building codes in Mexico, Abu Dhabi, and Haiti, among other places.
Wow! I've never known a pub with a 'bathroom'.
Whist those in the USA use euphemisms such has 'bathroom' (mate, where is the bath?) or 'restroom' (I don't need a rest, I need a shit), here it is perfectly acceptable to ask the butler in Buckingham palace where the toilet is, or the bog for that matter. :-)