Closed Bug 1480683 Opened 6 years ago Closed 6 years ago

[Netflix] The default login form background message is not falling back if credentials are typed

Categories

(Web Compatibility :: Site Reports, defect, P1)

defect

Tracking

(firefox61 verified, firefox62 verified, firefox63 verified)

VERIFIED FIXED
Tracking Status
firefox61 --- verified
firefox62 --- verified
firefox63 --- verified

People

(Reporter: csasca, Unassigned)

References

()

Details

(Whiteboard: [webcompat] [sitewait])

Attachments

(1 file)

Attached image netflix login.gif
[Affected versions]:
- Firefox 61.0.1
- Firefox Beta 62.0b13
- Firefox Nightly 63.0a1 (20180802220056)

[Affected platforms]:
- Windows 10 (x64) 
- macOS 10.13 
- Ubuntu 16.04 (x64)

[Steps to reproduce]:
1.Start Firefox.
2.Access www.netflix.com.
3.Click on Sign in.
4.Enter any credentials in the username and password forms.

[Expected result]:
- The writing in the background falls back when something is typed.

[Actual result]:
- The writing in the background is not falling back when something is typed.

[Regression range]:
- The issue is not a regression, as it is reproducing way back to 2014 builds.

[Additional notes]:
- Netflix has two different login pages. The one which is shown in the screencast is the one with the issue. If the other login page is encountered, simply restart firefox and try accessing again the page.
This should probably be reported to them... The label is supposed to shrink and move to the top, but the rule that does it is:

  .hybrid-login-form .hasText+.placeLabel, .hybrid-login-form .nfTextField:-webkit-autofill+.placeLabel, .hybrid-login-form .nfTextField:focus+.placeLabel { top: 7px; }

And a similar rule for:

    top: 4px;
    font-size: 11px;
    -webkit-transform: translateY(0);
    transform: translateY(0);

Of course, we don't parse :-webkit-autofill. Karl, have we seen more bugs like this? I can parse :-webkit-autofill as a no-op pseudo-class, but that's not great.
Component: Layout → Desktop
Flags: needinfo?(kdubost)
Product: Core → Tech Evangelism
Indeed…

```html
<div class="nfEmailPhoneControls" data-reactid="18">
  <label class="input_id" data-reactid="19">
    <input type="text" name="userLoginId" class="nfTextField error hasText" id="id_userLoginId" value="foo" tabindex="0" autocomplete="email" dir="ltr" data-reactid="20">
    <label for="id_userLoginId" class="placeLabel" data-reactid="21">Email or phone number</label>
  </label>
</div>
```


```css
.nfInput .hasText + .placeLabel, 
.nfInput .nfTextField:-webkit-autofill + .placeLabel,
.nfInput .nfTextField:focus + .placeLabel {
    top: 4px;
    font-size: 11px;
    -webkit-transform: translateY(0);
    transform: translateY(0)
}


.hybrid-login-form .hasText + .placeLabel, 
.hybrid-login-form .nfTextField:-webkit-autofill + .placeLabel,
.hybrid-login-form .nfTextField:focus + .placeLabel {
    top: 7px
}

```



https://developer.mozilla.org/fr/docs/Web/CSS/:-webkit-autofill
Bug 740979 is -moz-autofill


btw the only reason this fails is that :-webkit-autofill is not parsed, but also because browsers drop the full styling when one of the selectors is not parseable.

A good way for them to fix that is:


```css
.nfInput .hasText + .placeLabel, 
.nfInput .nfTextField:focus + .placeLabel {
    top: 4px;
    font-size: 11px;
    -webkit-transform: translateY(0);
    transform: translateY(0)
}

.nfInput .nfTextField:-webkit-autofill + .placeLabel {
    top: 4px;
    font-size: 11px;
    -webkit-transform: translateY(0);
    transform: translateY(0)
}


.hybrid-login-form .hasText + .placeLabel, 
.hybrid-login-form .nfTextField:focus + .placeLabel {
    top: 7px
}


.hybrid-login-form .nfTextField:-webkit-autofill + .placeLabel {
    top: 7px
}
```
See Also: → 740979
Whiteboard: [webcompat]
(In reply to Emilio Cobos Álvarez (:emilio) from comment #1)
> Of course, we don't parse :-webkit-autofill. Karl, have we seen more bugs
> like this? I can parse :-webkit-autofill as a no-op pseudo-class, but that's
> not great.


Nope from the top of my memory.
Apart of https://webcompat.com/issues/8125#issuecomment-405385397
Flags: needinfo?(kdubost)
Whiteboard: [webcompat] → [webcompat] [contactready]
netflix contacted on the partner mailing-list.
Whiteboard: [webcompat] [contactready] → [webcompat] [sitewait]
Priority: -- → P1
Netflix contacted me to say it was fixed.
It is.
Status: NEW → RESOLVED
Closed: 6 years ago
Resolution: --- → FIXED
The issue is verified fixed on Firefox 62.0, Firefox Beta 62.0b20 and latest Nightly 63.0a1 (2018-08-27) under Windows 10 (x64), macOS 10.12 and Ubuntu 16.04 (x64).
Product: Tech Evangelism → Web Compatibility
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: