This breaks the social contract of the web. If you publish on the web (over HTTP) using HTML (with or without css+js) then you respect the concept of a User-Agent that renders the content on behalf of the user. If you wish to get around this then create another file format and protocol and application/plugin to do so — one that enforces the DRM for the owner. Don’t take agency away from User-Agent.
There’s also a social contract about respect for the law. It’s arguably much older. It involves aspects like “following the spirit of the law”. Also “technical ability is not the same as permission”. It’s why the old shopkeeper’s waning ability to see is no license for you from the produce displayed outside. (This is mostly to show that I, too, can argue with invented “contracts”).
I pay for my internet connection and I expect others who make use of the same network to follow its protocols. I expect HTTP to work as HTTP. If a bad network node chooses to circumvent how it works and I find a way around their circumvention then I should not be punished. On the other hand, if I republish and break copyright it is an entirely different matter.