diff options
Diffstat (limited to 'layout/reftests/forms/input/text')
-rw-r--r-- | layout/reftests/forms/input/text/autofill-author-background.html | 9 | ||||
-rw-r--r-- | layout/reftests/forms/input/text/reftest.list | 3 |
2 files changed, 11 insertions, 1 deletions
diff --git a/layout/reftests/forms/input/text/autofill-author-background.html b/layout/reftests/forms/input/text/autofill-author-background.html new file mode 100644 index 0000000000..691adaa1ff --- /dev/null +++ b/layout/reftests/forms/input/text/autofill-author-background.html @@ -0,0 +1,9 @@ +<!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> diff --git a/layout/reftests/forms/input/text/reftest.list b/layout/reftests/forms/input/text/reftest.list index b6217d46bc..6c649a5196 100644 --- a/layout/reftests/forms/input/text/reftest.list +++ b/layout/reftests/forms/input/text/reftest.list @@ -15,9 +15,10 @@ 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 |