• thingsiplay@lemmy.ml
    link
    fedilink
    arrow-up
    1
    ·
    5 hours ago

    If the browser is programmed to report a single size, then its impossible for JavaScript to determine the actual size. Because all JS would get is the same resolution. That’s the idea of the suggestion.

    • Amju Wolf@pawb.social
      link
      fedilink
      arrow-up
      1
      ·
      edit-2
      2 hours ago

      …and then your websites break, because you actually need to render them correctly.

      …or it needs to be your actual window size, too.

      • thingsiplay@lemmy.ml
        link
        fedilink
        arrow-up
        1
        ·
        2 hours ago

        If the browser size is a standard size which is often tested to work with, then i don’t see it as such a big of a deal. Most sites are also resolution independent. We are no longer in 2010. Do you know any site that could break because you don’t use a specific resolution?