Skip to content

www.artigianino.com - "Register now" button is misaligned #60099

Closed

Description

URL: https://www.artigianino.com/register/

Browser / Version: Firefox 83.0a1 (2020-10-18)
Operating System: Windows 10
Tested Another Browser: Yes Chrome

Problem type: Design is broken
Description: Items are misaligned
Steps to Reproduce:

  1. Navigate to https://www.artigianino.com/register/
  2. Observe "Register now" button.

Expected Behavior:
The button is displayed correctly under the form.

Actual Behavior:
The button is displayed misaligned (on the right side of the form).

Notes:

  1. Screenshot attached.
  2. The issue is not reproducible on Chrome.

Affected area:

<button type="submit" class="btn btn-primary btn-lg btn-block" id="registerform-submit" name="wp-submit"><i class="fas fa-id-card-alt mr-3"></i>Register Now</button>

Watchers:
@softvision-oana-arbuzov
@cipriansv

View the screenshot Screenshot
Browser Configuration
  • None

From webcompat.com with ❤️

Activity

  1. added this to the needstriage milestone on Oct 19, 2020
  2. added
    engine-gecko
    on Oct 19, 2020
  3. changed the title [-]www.artigianino.com - design is broken[/-] [+]www.artigianino.com - "Register now" button is misaligned[/+] on Oct 19, 2020
  4. added
    severity-important
    on Oct 19, 2020
  5. karlcow commented on Oct 21, 2020

    @karlcow
    Member

    Removing the display flex on the element solves it.

    /* bootstrap.min.css | https://www.artigianino.com/contents/plugins/download-manager/assets/bootstrap/css/bootstrap.min.css */
    
    .w3eden .row {
      /* display: flex; */
    }

    @dholbert @aethanyc That's an interesting difference in between Blink, WebKit and Gecko Firefox.

  6. aethanyc commented on Oct 21, 2020

    @aethanyc

    The "password / confirm password" <div> is a float element, which leaves a very small area to its right. Firefox's flexbox seems to happy with the narrow width, and fits the "REGISTER NOW" flex container there. I'm not sure whether this is a bug in Firefox's flexbox min-width computation. Adding min-width: 11px to the flexbox containing "REGISTER NOW" can also fix it.

  7. dholbert commented on Oct 21, 2020

    @dholbert

    This seems to be a Chrome bug, related to handling a scenario with 0 space left and a negative margin.

    Here's a reduced testcase:
    https://jsfiddle.net/dholbert/ujphfkqz/

    • Firefox renders Case 1 and Case 2 the same (placing the "A B" flex container to the right of the pink area).
    • Chrome agrees with us on Case 1 there, but they disagree with us on Case 2. They push down the flex container in case 2 (as if it doesn't fit in that case).

    This is bogus. The only difference between case 1 and case 2 is that the flex container is skinnier in case 2 (it's negative width there, due to having a negative margin). So there's no reason for it to be pushed down in that case, if it fit just fine in case 1.

  8. dholbert commented on Oct 21, 2020

    @dholbert

    If you view the original testcase in Chrome, and use their devtools to add style="margin:0" to the <div class="row"> ancestor of the register button (to override the negative margin styling that the page has assigned to it), then Chrome changes their rendering to match us (i.e. they pull that element up to be on the right of the wide float, so that it ends up looking broken).

    This is bogus, for the reasons that I laid out in my previous comment. There's no reason that increasing the margin (from negative to 0) should make the element change from not-fitting to fitting in a tiny space.

  9. dholbert commented on Oct 21, 2020

    @dholbert
  10. karlcow commented on Oct 22, 2020

    @karlcow
    Member

    The site has been created by https://ideamedia.org/en/ for [email protected]

    © 2018 Tutti i diritti riservati. Artigianino Franchising S.r.l., Via Pinerolo 31, 00182 Roma - P. Iva 14065131006

  11. dholbert commented on May 8, 2022

    @dholbert

    I'm revisiting this now that I've landed a fix for https://bugzilla.mozilla.org/show_bug.cgi?id=1745310 :

    https://www.artigianino.com/register/ is now "not found", so it looks like the site has changed, and the original broken-in-Firefox content isn't there anymore.

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-geckopriority-normalseverity-importanttype-css-flexbox

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions