Skip to content

www.adobe.com - Incorrect position of the error messages on “Contact” overlay #8616

Closed

Description

@softvision-oana-arbuzov

URL: https://www.adobe.com/de/enterprise.html?promoid=QQ42PC3G&mv=other#amc-rfi

Browser / Version: Firefox Mobile Nightly 56.0a1 (2017-08-01)
Operating System: LG G5 (Android 7.0) - Resolution 1440 x 2560 pixels (~554 ppi pixel density)
Tested Another Browser: Yes

Problem type: Design is broken
Description: Incorrect position of the error messages on “Contact” overlay

Steps to Reproduce:

  1. Navigate to: https://www.adobe.com/de/enterprise.html?promoid=QQ42PC3G&mv=other#amc-rfi.
  2. Tap any of the fields (e.g. “Vorname” (“First name”)).
  3. Leave the field empty and tap a different field (e.g. “Nachname” (“Surname”)).
  4. Observe error message position.

Expected Behavior:
Error message is displayed under the field.

Actual Behavior:
Error message is displayed inside the field.

Note:

  1. Reproducible on Firefox 54.0 Release (Mobile) and
  2. Not reproducible on Chrome (Mobile) 59.0.3071.125.
  3. Screenshot attached.

Watchers:
@softvision-sergiulogigan
@softvision-oana-arbuzov

sv; country: de

Screenshot Description

From webcompat.com with ❤️

Activity

  1. changed the title [-]www.adobe.com - design is broken[/-] [+]www.adobe.com - Incorrect position of the error messages on “Contact” overlay[/+] on Aug 2, 2017
  2. MDTsai commented on Aug 3, 2017

    @MDTsai

    Confirmed, move to needsdiagnosis.

  3. added this to the needsdiagnosis milestone on Oct 30, 2017
  4. softvision-oana-arbuzov commented on Jan 16, 2018

    @softvision-oana-arbuzov
    MemberAuthor

    The issue is still reproducible.

    Tested with:
    Browser / Version: Firefox Nightly Mobile 59.0a1 (2018-01-15)
    Operating System: Google Pixel (Android 8.1.0) - Resolution 1080 x 1920 pixels (~441 ppi pixel density), Samsung Galaxy S7 Edge (Android 7.0) - Resolution 1440 x 2560 pixels (~534 ppi pixel density)

  5. added
    type-css
    on Jan 17, 2018
  6. karlcow commented on Jan 17, 2018

    @karlcow
    Member

    Markup

    <div class="row textfield 8 error"
        style="outline: 1px solid pink;">
        <label for="Form40_8"
            class="required">Vorname </label>
        <input id="Form40_8"
            name="Form40[8]"
            onfocus="_faas_site_catalyst_form_interaction(this,'8',8)"
    
            maxlength="40"
            placeholder="Vorname "
            type="text">
        <div>
            <div id="Form40_8_em_"
                class="errorMessage"
                style="">Vorname darf nicht leer sein.</div>
        </div>
        <div class="clear-both"></div>
    </div>

    The CSS for the div containing the error message. I put in comments the non-standard ones.

    form .row div:first-child, form .row label ~ div, form [role="region"] div:first-child, form [role="region"] label ~ div {
    	/* -webkit-align-content: flex-end; */
    	/* -ms-flex-line-pack: end; */
    	align-content: flex-end;
    	/* -webkit-align-items: baseline; */
    	/* -ms-flex-align: baseline; */
    	align-items: baseline;
    	/* display: -webkit-flex; */
    	/* display: -ms-flexbox; */
    	display: flex;
    	/* -webkit-flex: 1 1 19em; */
    	/* -ms-flex: 1 1 19em; */
    	flex: 1 1 19em;
    	/* -webkit-flex-wrap: wrap; */
    	/* -ms-flex-wrap: wrap; */
    	flex-wrap: wrap;
    }

    This is what we get.

    Screenshot Description

    Let's remove flex-wrap: wrap; and…

    Screenshot Description

    Working.

    The other solution I found was to add a display: block

    <div class="row textfield 8 error"
        style="outline: 1px solid pink;">
        <label for="Form40_8"
            class="required">Vorname </label>
        <input id="Form40_8"
            name="Form40[8]"
            onfocus="_faas_site_catalyst_form_interaction(this,'8',8)"
    
            maxlength="40"
            placeholder="Vorname "
            type="text">
        <div style="display: block;">
            <div id="Form40_8_em_"
                class="errorMessage"
                style="">Vorname darf nicht leer sein.</div>
        </div>
        <div class="clear-both"></div>
    </div>

    I switch to needscontact but maybe this is interesting for @dholbert on flexbox differences with Chrome.

  7. dholbert commented on Jan 20, 2018

    @dholbert

    So I'm pretty sure Firefox is correct here, and Chrome (and Edge) are incorrect.

    The "problematic" bit of CSS here is align-content: flex-end. That is getting (incorrectly) ignored in Chrome and Edge, and if the site wants the Chrome/Edge behavior (as they probably do), then they should just remove that line since they're depending on it not having any effect.

    RE why other browsers are wrong here:

    "The static position of an absolutely-positioned child of a flex container is determined such that the child is positioned as if it were the sole flex item in the flex container, assuming both the child and the flex container were fixed-size boxes of their used size."
    https://drafts.csswg.org/css-flexbox/#abspos-items

    Edge is not honoring that bit of spec text right now (if they were, then they'd render my above-linked jsfiddles the same way).

    Anyway - as noted above, the site likely wants to drop align-content: flex-end (and its prefixed forms) since they're relying on it being ignored (and Firefox correctly does not ignore it).

  8. dholbert commented on Jan 20, 2018

    @dholbert

    CC @gregwhitworth - Edge has a bug here, as noted above. They're not honoring align-content when determining the static position of the the abspos children at https://jsfiddle.net/05b2oa7L/ , even though https://drafts.csswg.org/css-flexbox/#abspos-items says they should.

  9. added
    severity-minor
    on Apr 5, 2018
  10. added
    engine-gecko
    on Apr 30, 2019
  11. karlcow commented on Oct 8, 2019

    @karlcow
    Member

    Trying to find a way to send a simple bug report… and it's like Fort Knox to report something about the website itself.

    /* aceui-reimagine.min.fp-873eaa7747273644835274d56d75d695.css | https://www.adobe.com/etc.fps.clientlibs/beagle/fe/resources/css/aceui-reimagine.min.fp-873eaa7747273644835274d56d75d695.css */
    
    .faasform form .row input ~ div, .faasform form .row select ~ div, .faasform form .row textarea ~ div {
      align-content: flex-start;
    }

    https://twitter.com/MozWebCompat/status/1181440648651493381

  12. modified the milestones: needscontact, sitewait on Oct 8, 2019
  13. dholbert commented on Oct 8, 2019

    @dholbert

    BTW, Chrome "fixed" the bug that I linked above, but only partly -- they're now in the same situation as Edge, where they've got this working for normal flex items but broken for abspos children of a flex container. I'll file a bug on that.

  14. dholbert commented on Oct 8, 2019

    @dholbert

    I filed https://bugs.chromium.org/p/chromium/issues/detail?id=1012441 on the remaining Chrome bug (which the site is inadvertently depending on, by expecting align-content to be ignored here).

  15. added
    q4-2019-outreach
    on Nov 12, 2019
  16. modified the milestones: sitewait, invalid on Jan 13, 2020
  17. cipriansv commented on Jan 13, 2020

    @cipriansv

    After retesting the issue I noticed that the layout has changed.

    image

    Tested with:
    Browser / Version: Mobile 68.5a1 (2020-01-11), Firefox Preview Nightly 200112 (🦎 74.0a1-20200110095023)
    Operating System: Huawei P10 (Android 9.0) - 1080 x 1920 pixels (~432 ppi pixel density)

    Closing the issue as invalid.

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-firefox-mobileengine-geckopriority-importantq4-2019-outreachseverity-minortype-css

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions