If you try hard enough, it's possible to fuck with almost any aspect of normal web UI. Trying to prevent existing ways of doing it will lead to worse ways being used by people who think they know better.
because this is web and nothing makes sense.
Because if a web site were not able to fuck with all the things, that would make web-site developers less impressive and less useful to prospective employers.
The inner platform effect is unavoidable. At the extreme end, there will always be someone reimplementing a browser on top of webgl/wasm/whatever.