• SSUPII@sopuli.xyz
    link
    fedilink
    English
    arrow-up
    0
    ·
    1 year ago

    The style of the <select> dropdown menu are managed by the operative system. You can’t keep it open, and you can’t modify it outside of your system settings.

    You might re-implement the drop-down system menu by yourself via CSS/JS if this is your website, so they become actual elements of the website.

  • dan@lemm.ee
    link
    fedilink
    English
    arrow-up
    0
    ·
    1 year ago

    You can access the option elements inside the select via the dom and style them there. In most browsers on a Mac (which that looks like?) those selects are actually implemented as separate windows - not even part of the browser, so you’re going to struggle to access them directly.

      • TheTwelveYearOld@lemmy.worldOP
        link
        fedilink
        English
        arrow-up
        0
        arrow-down
        1
        ·
        1 year ago

        Can you elaborate on that? What do u mean by OS level?

        I really people to be specific do I know these things exactly.

        I think Firefox should be able to keep the dropdown menu focused somehow, since its essentially HTML inside the browser engine, and its possible to disable pop hiding for Firefox UI popups in the browser toolbox. The browser toolbox can’t inspect page HTML though, only Firefox UI elements.

        • TrickDacy@lemmy.world
          link
          fedilink
          English
          arrow-up
          0
          ·
          1 year ago

          I don’t know if your assertions are right or if mine are either. But my understanding is that dropdowns are an OS feature and consequently the OS is responsible for managing the open and close state of dropdowns, depending on focus. Again, I’m not sure and I’m not expert. It’s just what it’s looked like to me as an observer.