diff options
Diffstat (limited to 'layout/reftests/forms/input')
6 files changed, 19 insertions, 5 deletions
diff --git a/layout/reftests/forms/input/file/reftest.list b/layout/reftests/forms/input/file/reftest.list index 2ad51b2f69..d8276cb941 100644 --- a/layout/reftests/forms/input/file/reftest.list +++ b/layout/reftests/forms/input/file/reftest.list @@ -5,7 +5,7 @@ fuzzy(0-1,0-10) == background.html chrome://reftest/content/forms/input/file/bac fuzzy-if(gtkWidget,0-1,0-10) == style.html chrome://reftest/content/forms/input/file/style-ref.xhtml != width-clip.html width-clip-ref.html == color-inherit.html color-inherit-ref.html -pref(widget.non-native-theme.webrender,true) fuzzy(0-1,0-5) fuzzy-if(OSX,0-46,0-134) == dynamic-max-width.html dynamic-max-width-ref.html # bug 1496542 for webrender, bug 1724582 for appleSilicon +pref(widget.non-native-theme.webrender,true) fuzzy(0-1,0-5) fuzzy-if(cocoaWidget,0-46,0-134) == dynamic-max-width.html dynamic-max-width-ref.html # bug 1496542 for webrender, bug 1724582 for appleSilicon == label-min-inline-size.html label-min-inline-size-ref.html == css-overflow.html css-overflow-ref.html == css-display.html css-display-ref.html diff --git a/layout/reftests/forms/input/number/number.html b/layout/reftests/forms/input/number/number.html new file mode 100644 index 0000000000..0b4221fe70 --- /dev/null +++ b/layout/reftests/forms/input/number/number.html @@ -0,0 +1,2 @@ +<!doctype html> +<input type=number> diff --git a/layout/reftests/forms/input/number/reftest.list b/layout/reftests/forms/input/number/reftest.list index 0a50ef8113..256e3f1df1 100644 --- a/layout/reftests/forms/input/number/reftest.list +++ b/layout/reftests/forms/input/number/reftest.list @@ -1,5 +1,5 @@ # sanity checks: -!= not-other-type-unthemed-1.html not-other-type-unthemed-1a-notref.html +fails-if(Android) pref(dom.forms.number.hide_spin_buttons_when_no_hover_or_focus,false) != not-other-type-unthemed-1.html not-other-type-unthemed-1a-notref.html != not-other-type-unthemed-1.html not-other-type-unthemed-1b-notref.html # should look the same as type=text, except for the spin box @@ -17,7 +17,7 @@ fuzzy(0-2,0-13) == show-value.html show-value-ref.html # disabled == number-disabled.html number-disabled-ref.html -!= number-spinbox-disabled.html number-spinbox-disabled-notref.html +fails-if(Android) pref(dom.forms.number.hide_spin_buttons_when_no_hover_or_focus,false) != number-spinbox-disabled.html number-spinbox-disabled-notref.html # auto width: == number-auto-width-1.html number-auto-width-1-ref.html @@ -72,3 +72,5 @@ fuzzy(0-14,0-4) == clipped-text.html clipped-text-ref.html fails-if(useDrawSnapshot) needs-focus != caret-right.html caret-right-notref.html fails-if(useDrawSnapshot) needs-focus != caret-left-rtl.html caret-left-rtl-notref.html fails-if(useDrawSnapshot) needs-focus != caret-right-vertical.html caret-right-vertical-notref.html + +fails-if(Android) test-pref(dom.forms.number.hide_spin_buttons_when_no_hover_or_focus,true) ref-pref(dom.forms.number.hide_spin_buttons_when_no_hover_or_focus,false) != number.html number.html diff --git a/layout/reftests/forms/input/radio/reftest.list b/layout/reftests/forms/input/radio/reftest.list index 6c80eaf447..f500a83d0d 100644 --- a/layout/reftests/forms/input/radio/reftest.list +++ b/layout/reftests/forms/input/radio/reftest.list @@ -5,5 +5,5 @@ != checked-native.html about:blank != checked-native-notref.html about:blank == radio-clamp-01.html radio-clamp-01-ref.html -skip-if(OSX||winWidget||Android) == radio-clamp-02.html radio-clamp-02-ref.html +skip-if(!gtkWidget) == radio-clamp-02.html radio-clamp-02-ref.html != radio-minimum-size.html radio-minimum-size-notref.html 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 |