You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
www.artigianino.com - "Register now" button is misaligned #60099
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.
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.
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.
Activity
[-]www.artigianino.com - design is broken[/-][+]www.artigianino.com - "Register now" button is misaligned[/+]karlcow commentedon Oct 21, 2020
Removing the display flex on the element solves it.
@dholbert @aethanyc That's an interesting difference in between Blink, WebKit and Gecko Firefox.
aethanyc commentedon Oct 21, 2020
The "password / confirm password"
<div>is afloatelement, 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. Addingmin-width: 11pxto the flexbox containing"REGISTER NOW"can also fix it.dholbert commentedon Oct 21, 2020
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/
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.
dholbert commentedon Oct 21, 2020
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.
dholbert commentedon Oct 21, 2020
Filed: https://bugs.chromium.org/p/chromium/issues/detail?id=1141209
karlcow commentedon Oct 22, 2020
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
dholbert commentedon May 8, 2022
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.