Hi! I have a very simple web-app for displaying the weather. It’s built with just HTML, CSS and JavaScript, getting the data from the OpenWeatherMap API. I made this for my own personal use only.

It looks great in Firefox on my Linux desktop, and in the DuckDuckGo browser on my android 16 phone. In the Firefox browser on my phone, it looks great in a Private browsing tab. But there’s an issue in a regular (non-private) FF browser tab.

In that one context, I have a display:flex row, with one column for the forecasted temperature for each of the next 24 hours and in a FF Android non-private browser tab only, the section is not displayed at all.

This is what it looks like in the DDG browser (correct):
https://files.catbox.moe/1aa2br.png

This is what it looks like in the FF non-private browser (the Hourly columns are not displayed):
https://files.catbox.moe/108iy6.png

You can see the “hourly” heading for the section but none of the contents are displayed at all.

The HTML for the div looks like this:

<div class="hourly-forecast">  
                <div class="hour-column">  
                    <div class="hr-temperature"></div>  
                    <div class="hr-sun"></div>  
                    <div class="hr-time"></div>  
                </div>  
</div>  

The CSS for the hourly-forecast and hour-column classes looks like this:

hourly-forecast {  
    display: -webkit-flexbox;  
    display: -ms-flexbox;  
    display: -webkit-flex;  
    display: flex;  
    justify-content: space-between;  
    padding: 5px;  
    white-space: nowrap;  
    overflow-x: auto; /* Allows horizontal scrolling */  
}  

.hour-column {  
    display: -webkit-flexbox;  
    display: -ms-flexbox;  
    display: -webkit-flex;  
    display: flex;  
    flex-direction: column;  
    align-items: center;  
    min-width: 75px;  
    text-align: center;  
    border-left: 1px solid lightseagreen;  
}  

I just added those -webkit lines but that didn’t help any.

The JS just gets the data and puts it in the correct spots in the HTML. The page is not really interactive otherwise, FYI.

I searched around for this but couldn’t find anyone else who had issues that only show up in FF Android.

Thanks for any ideas you might have!

  • perishthethought@piefed.socialOP
    link
    fedilink
    English
    arrow-up
    1
    ·
    2 months ago

    Thanks for the idea. Tried that, went through all of the related CSS lines. No changes in the display in FF.

    I also tried adding text inside the html elements where I expect to see the data displayed, like this:

    <div class="hourly-forecast">  
                    <div class="hour-column">  
                        <div class="hr-temperature">1</div>  
                        <div class="hr-sun"></div>  
                        <div class="hr-time"></div>  
                    </div>  
                    <div class="hour-column">  
                        <div class="hr-temperature">2</div>  
                        <div class="hr-sun"></div>  
                        <div class="hr-time"></div>  
                    </div>  
                    <div class="hour-column">  
                        <div class="hr-temperature">3</div>  
                        <div class="hr-sun"></div>  
                        <div class="hr-time"></div>  
                    </div>  
    </div>  
    

    That “1” (etc) does display, in a stack, one number below the next. No idea why though still.

    • GreatRam@lemmy.world
      link
      fedilink
      arrow-up
      1
      ·
      edit-2
      2 months ago

      You can add a flex-direction: row to the hourly-forecast.

      Something else you can do is see if you have any extensions and try turning them off one by one to see if it’s one of them causing it.

      Last you can try to get the devtools working and investigate with them why theyre not rendering as expected.

      • perishthethought@piefed.socialOP
        link
        fedilink
        English
        arrow-up
        1
        ·
        2 months ago

        Thanks again. Adding flex-direction didn’t changer things. And doing the whole firefox remote deubgging via adb looks like a ton a of setup. I think I will just abandon ship here and use a work-around, since this is still just for me.