Skip to content

www.puticollege.com - design is broken #92024

Closed

Description

@webcompat-bot

URL: https://www.puticollege.com/

Browser / Version: Firefox 93.0
Operating System: Windows 11
Tested Another Browser: Yes Chrome

Problem type: Design is broken
Description: Items not fully visible
Steps to Reproduce:
As described in https://support.mozilla.org/en-US/questions/1356079 , jscher2000 suggests to file a bug here, saying

Firefox seems to have a problem with this nesting of flex elements:

<div class="list d-flex flex-row overflow-hidden" _ngcontent-uai-c8="">
  <div _ngcontent-xub-c8="" class="row">...</div>
</div>

The d-flex flex-row classes apply these rules to the featured class list:

.d-flex {
 display:flex!important
}
.flex-row {
 flex-direction:row!important
}

The row class uses the default flex-direction of row as well.

In Firefox, this combination is causing the content that usually appears in two columns to go haywire with crazy widths and negative widths. I don't know whether this is a bug or is in compliance with the spec, but either way, it's not helpful.

You can file a bug on https://bugzilla.mozilla.org/

View the screenshot Screenshot
Browser Configuration
  • None

From webcompat.com with ❤️

Activity

  1. added
    action-needsmoderation
    on Nov 1, 2021
  2. added this to the needstriage milestone on Nov 1, 2021
  3. added
    browser-fixme
    on Nov 1, 2021
  4. xqiu commented on Nov 1, 2021

    @xqiu

    The site fixed the firefox display problem by removing unintended d-flex flex-row classes, so you won't be able to see the problem in original website directly. You can still view the problem by add them back in firefox inspector. e.g. find the line

    <div _ngcontent-nav-c8="" class="list overflow-hidden">
       <div _ngcontent-nav-c8="" class="row">

    add d-flex before overflow-hidden , then you will see the problem.

  5. changed the title [-]In the moderation queue.[/-] [+]www.puticollege.com - design is broken[/+] on Nov 2, 2021
  6. added
    engine-gecko
    and removed
    browser-fixme
    action-needsmoderation
    on Nov 2, 2021
  7. softvision-oana-arbuzov commented on Nov 2, 2021

    @softvision-oana-arbuzov
    Member

    Thanks for the report, I was able to reproduce the issue after adding d-flex to list overflow-hidden.
    image

    Affected area:

    <div _ngcontent-guj-c8="" class="list d-flex overflow-hidden">
     <div _ngcontent-guj-c8="" class="row">
      <!--cut out--> 
    </div>

    Note: The issue is not reproducible on Chrome.

    Tested with:
    Browser / Version: Firefox Nightly 96.0a1 (2021-11-01)
    Operating System: Windows 10 Pro

    Since the site fixed the issue on their side, I believe there is nothing to be done there.
    @karlcow should this be an issue for Bugzilla?

  8. karlcow commented on Nov 2, 2021

    @karlcow
    Member

    The element is indeed huge…

    2982580px × 1677700px

    This can be fixed by adding

    /* styles.db7be22c13d131c4f4ad.css | https://www.puticollege.com/styles.db7be22c13d131c4f4ad.css */
    
    .row {
      flex: 1;
    }

    Capture d’écran 2021-11-02 à 22 10 05

    note that these values are useless on .col because there is no parent with display: flex;

    /* styles.db7be22c13d131c4f4ad.css | https://www.puticollege.com/styles.db7be22c13d131c4f4ad.css */
    
    
    .col {
      /* flex-basis: 0; */
      /* flex-grow: 1; */
    }

    In the past there was https://bugzilla.mozilla.org/show_bug.cgi?id=1316534
    but this has been fixed.

    Removing the two display: table is fixing it too.

    /* styles.db7be22c13d131c4f4ad.css | https://www.puticollege.com/styles.db7be22c13d131c4f4ad.css */
    
    .lecture-item-description-container {
      /* display: table; */
    }
    
    .lecture-item-title-container {
      /* display: table; */
    }

    I wonder what is happening. or maybe this is a regression.

    @aethanyc so this seems to be an issue with display: table in the context of flex.

  9. karlcow commented on Nov 2, 2021

    @karlcow
    Member

    Ah another solution to this issue is

    /* styles.447625b19799ac3c3871.css | https://www.puticollege.com/styles.447625b19799ac3c3871.css */
    
    .row {
      /* margin-right: -15px; */
      /* margin-left: -15px; */
      width: calc(100% - 30px);
    }

    Thanks @wisniewskit for the suggestion.
    And this depends in fact on a bug from Chromium.
    https://bugs.chromium.org/p/chromium/issues/detail?id=1141209

  10. modified the milestones: needstriage, duplicate on Nov 8, 2021
  11. removed their assignment
    on Nov 8, 2021
  12. dholbert commented on May 9, 2022

    @dholbert

    Update here:

    • I confirmed that the issue is still reproducible, if I adjust the site to add d-flex as noted in early comments here.
    • I confirmed that karlcow's width: calc(100% - 30px); CSS does indeed still fix the issue.
    • However, it's not actually a dupe of the Chromium bug that karlcow linked[1] -- that bug had to do with floats, and it turns out this site's rendering issue is reproducible even if I remove all floats from the page. So I'll file a new bug on this. (It has something to do with table-layout:fixed being greedy, I think.)

    [1] side note, the Chromium bug ended up being not-a-bug and I landed a fix to make Firefox match Chrome in https://bugzilla.mozilla.org/show_bug.cgi?id=1745310 . I ran across this webcompat report when going over the list of associated webcompat reports to verify that they are all indeed fixed.

  13. added
    action-needssitepatch
    and removed on May 17, 2022
  14. removed
    action-needssitepatch
    on Jun 8, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    browser-firefoxengine-gecko

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions