Update on September 29, 2026: Starting today, the new Firefox design is rolling out to everyone who uses the browser across desktop and mobile devices. It
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.
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.