• KairuByte@lemmy.dbzer0.com
    link
    fedilink
    arrow-up
    2
    ·
    2 days ago

    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.