- cross-posted to:
- browsers@programming.dev
- firefox@fedia.io
- firefox@fedia.io
- cross-posted to:
- browsers@programming.dev
- firefox@fedia.io
- firefox@fedia.io
cross-posted from: https://mander.xyz/post/52390229
cross-posted from: https://mander.xyz/post/52390229
That simply doesn’t work.
Okay, let’s say that the standard “what is the window size” JavaScript method is intercepted and altered, how do you handle setting an element to a specific percentage width and then determining how wide it is in pixels? Or any of the other ways I can think to accomplish this same thing?
If you intercept all of those, you effectively break any site with relative movement of elements with JavaScript.
And that’s just one example.