forked from mirrors/gecko-dev
Backed out 2 changesets (bug 1755033) for causing mochitest failures in test_formautofill_preview_highlight.html CLOSED TREE
Backed out changeset 4fde36e8266a (bug 1755033) Backed out changeset 5e26aac6ca16 (bug 1755033)
This commit is contained in:
parent
b671d9ecd4
commit
6bc0f370cc
3 changed files with 8 additions and 14 deletions
|
|
@ -1,9 +0,0 @@
|
|||
<!doctype html>
|
||||
<input type=text style="background-color: red; background-image: linear-gradient(red, blue);">
|
||||
<script>
|
||||
let input = SpecialPowers.wrap(document.querySelector("input"));
|
||||
SpecialPowers.Cc["@mozilla.org/satchel/form-fill-controller;1"].getService(SpecialPowers.Ci.nsIFormFillController).markAsAutofillField(input);
|
||||
input.getBoundingClientRect(); // previewValue setter depends on the reframe posted by markAsAutofillField() having being processed...
|
||||
input.previewValue = "Autofill";
|
||||
SpecialPowers.wrap(window).windowUtils.addManuallyManagedState(input, "-moz-autofill-preview");
|
||||
</script>
|
||||
|
|
@ -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
|
||||
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue