Skip to content

Commit

Permalink
Backed out 2 changesets (bug 1755033) for causing mochitest failures …
Browse files Browse the repository at this point in the history
…in test_formautofill_preview_highlight.html CLOSED TREE

Backed out changeset 4fde36e8266a (bug 1755033)
Backed out changeset 5e26aac6ca16 (bug 1755033)
  • Loading branch information
Cristian Tuns committed Feb 29, 2024
1 parent b671d9e commit 6bc0f37
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 14 deletions.

This file was deleted.

3 changes: 1 addition & 2 deletions layout/reftests/forms/input/text/reftest.list
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,9 @@ fuzzy(0-1,0-500) needs-focus == select.html select-ref.html
== autofill-blank.html autofill-preview-blank.html
!= autofill.html autofill-blank.html
!= autofill-preview.html autofill-preview-blank.html
== autofill.html autofill-preview.html
!= autofill.html autofill-preview.html
== autofill-prefilled-value.html autofill-preview.html
== autofill-preview-line-height.html autofill-line-height.html
== autofill-author-background.html autofill.html

== pseudo-class-lock.html pseudo-class-lock-ref.html

Expand Down
10 changes: 7 additions & 3 deletions layout/style/res/forms.css
Original file line number Diff line number Diff line change
Expand Up @@ -915,7 +915,11 @@ input:is([type=date], [type=time], [type=datetime-local]):is(:disabled, :read-on
}

input:autofill, select:autofill {
background-color: -moz-autofill-background !important;
background-image: none !important;
color: FieldText !important;
/* The idea behind using background-image instead of plain background-color
* is that it's less likely to be overridden by the page. */
background-image: linear-gradient(-moz-autofill-background, -moz-autofill-background);
}

input:-moz-autofill-preview, select:-moz-autofill-preview {
color: GrayText;
}

0 comments on commit 6bc0f37

Please sign in to comment.