From 2aa4a82499d4becd2284cdb482213d541b8804dd Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Sun, 28 Apr 2024 16:29:10 +0200 Subject: Adding upstream version 86.0.1. Signed-off-by: Daniel Baumann --- .../reftests/forms/input/file/background-ref.xhtml | 16 ++++++ layout/reftests/forms/input/file/background.html | 11 ++++ .../forms/input/file/button-height-ref.html | 6 ++ .../reftests/forms/input/file/button-height.html | 6 ++ .../forms/input/file/color-inherit-ref.html | 6 ++ .../reftests/forms/input/file/color-inherit.html | 6 ++ .../reftests/forms/input/file/css-display-ref.html | 54 ++++++++++++++++++ layout/reftests/forms/input/file/css-display.html | 64 ++++++++++++++++++++++ .../forms/input/file/css-overflow-ref.html | 39 +++++++++++++ layout/reftests/forms/input/file/css-overflow.html | 46 ++++++++++++++++ .../forms/input/file/dynamic-max-width-ref.html | 20 +++++++ .../forms/input/file/dynamic-max-width.html | 34 ++++++++++++ .../input/file/label-min-inline-size-ref.html | 23 ++++++++ .../forms/input/file/label-min-inline-size.html | 44 +++++++++++++++ layout/reftests/forms/input/file/reftest.list | 12 ++++ layout/reftests/forms/input/file/rtl-ref.xhtml | 17 ++++++ layout/reftests/forms/input/file/rtl.html | 8 +++ layout/reftests/forms/input/file/simple-ref.xhtml | 14 +++++ layout/reftests/forms/input/file/simple.html | 8 +++ layout/reftests/forms/input/file/size.html | 9 +++ layout/reftests/forms/input/file/style-ref.xhtml | 25 +++++++++ layout/reftests/forms/input/file/style.css | 61 +++++++++++++++++++++ layout/reftests/forms/input/file/style.html | 16 ++++++ .../reftests/forms/input/file/width-clip-ref.html | 3 + layout/reftests/forms/input/file/width-clip.html | 3 + 25 files changed, 551 insertions(+) create mode 100644 layout/reftests/forms/input/file/background-ref.xhtml create mode 100644 layout/reftests/forms/input/file/background.html create mode 100644 layout/reftests/forms/input/file/button-height-ref.html create mode 100644 layout/reftests/forms/input/file/button-height.html create mode 100644 layout/reftests/forms/input/file/color-inherit-ref.html create mode 100644 layout/reftests/forms/input/file/color-inherit.html create mode 100644 layout/reftests/forms/input/file/css-display-ref.html create mode 100644 layout/reftests/forms/input/file/css-display.html create mode 100644 layout/reftests/forms/input/file/css-overflow-ref.html create mode 100644 layout/reftests/forms/input/file/css-overflow.html create mode 100644 layout/reftests/forms/input/file/dynamic-max-width-ref.html create mode 100644 layout/reftests/forms/input/file/dynamic-max-width.html create mode 100644 layout/reftests/forms/input/file/label-min-inline-size-ref.html create mode 100644 layout/reftests/forms/input/file/label-min-inline-size.html create mode 100644 layout/reftests/forms/input/file/reftest.list create mode 100644 layout/reftests/forms/input/file/rtl-ref.xhtml create mode 100644 layout/reftests/forms/input/file/rtl.html create mode 100644 layout/reftests/forms/input/file/simple-ref.xhtml create mode 100644 layout/reftests/forms/input/file/simple.html create mode 100644 layout/reftests/forms/input/file/size.html create mode 100644 layout/reftests/forms/input/file/style-ref.xhtml create mode 100644 layout/reftests/forms/input/file/style.css create mode 100644 layout/reftests/forms/input/file/style.html create mode 100644 layout/reftests/forms/input/file/width-clip-ref.html create mode 100644 layout/reftests/forms/input/file/width-clip.html (limited to 'layout/reftests/forms/input/file') diff --git a/layout/reftests/forms/input/file/background-ref.xhtml b/layout/reftests/forms/input/file/background-ref.xhtml new file mode 100644 index 0000000000..cf5b0c5e48 --- /dev/null +++ b/layout/reftests/forms/input/file/background-ref.xhtml @@ -0,0 +1,16 @@ + + + + + window { + background-color: blue; + } + + + + + Browse… + + diff --git a/layout/reftests/forms/input/file/background.html b/layout/reftests/forms/input/file/background.html new file mode 100644 index 0000000000..02af1d143d --- /dev/null +++ b/layout/reftests/forms/input/file/background.html @@ -0,0 +1,11 @@ + + + + + + + diff --git a/layout/reftests/forms/input/file/button-height-ref.html b/layout/reftests/forms/input/file/button-height-ref.html new file mode 100644 index 0000000000..a80d261cf8 --- /dev/null +++ b/layout/reftests/forms/input/file/button-height-ref.html @@ -0,0 +1,6 @@ + + + diff --git a/layout/reftests/forms/input/file/button-height.html b/layout/reftests/forms/input/file/button-height.html new file mode 100644 index 0000000000..b1094ad783 --- /dev/null +++ b/layout/reftests/forms/input/file/button-height.html @@ -0,0 +1,6 @@ + + + diff --git a/layout/reftests/forms/input/file/color-inherit-ref.html b/layout/reftests/forms/input/file/color-inherit-ref.html new file mode 100644 index 0000000000..39cd471a56 --- /dev/null +++ b/layout/reftests/forms/input/file/color-inherit-ref.html @@ -0,0 +1,6 @@ + + + + + + diff --git a/layout/reftests/forms/input/file/color-inherit.html b/layout/reftests/forms/input/file/color-inherit.html new file mode 100644 index 0000000000..8435329537 --- /dev/null +++ b/layout/reftests/forms/input/file/color-inherit.html @@ -0,0 +1,6 @@ + + + + + + diff --git a/layout/reftests/forms/input/file/css-display-ref.html b/layout/reftests/forms/input/file/css-display-ref.html new file mode 100644 index 0000000000..875362bddf --- /dev/null +++ b/layout/reftests/forms/input/file/css-display-ref.html @@ -0,0 +1,54 @@ + + +Reference: File input with CSS display + + + + + + + + + + A + + + + + + + + A + + + + + + + + A + + + + + + + + A + + + + + + + diff --git a/layout/reftests/forms/input/file/css-display.html b/layout/reftests/forms/input/file/css-display.html new file mode 100644 index 0000000000..aba7435015 --- /dev/null +++ b/layout/reftests/forms/input/file/css-display.html @@ -0,0 +1,64 @@ + + +Test: File input with CSS display + + + + + + + + + + + + + + A + + + + + + + + A + + + + + + + + A + + + + + + + + A + + + + + + + diff --git a/layout/reftests/forms/input/file/css-overflow-ref.html b/layout/reftests/forms/input/file/css-overflow-ref.html new file mode 100644 index 0000000000..a3f696fcf2 --- /dev/null +++ b/layout/reftests/forms/input/file/css-overflow-ref.html @@ -0,0 +1,39 @@ + + +Reference: File input with CSS overflow + + + + A + + + + + + A + + + + + + A + + + + + + A + + + + + diff --git a/layout/reftests/forms/input/file/css-overflow.html b/layout/reftests/forms/input/file/css-overflow.html new file mode 100644 index 0000000000..dd3fb08bf5 --- /dev/null +++ b/layout/reftests/forms/input/file/css-overflow.html @@ -0,0 +1,46 @@ + + +Test: File input with CSS overflow + + + + + + + + A + + + + + + A + + + + + + A + + + + + + A + + + + + diff --git a/layout/reftests/forms/input/file/dynamic-max-width-ref.html b/layout/reftests/forms/input/file/dynamic-max-width-ref.html new file mode 100644 index 0000000000..1628c5fa30 --- /dev/null +++ b/layout/reftests/forms/input/file/dynamic-max-width-ref.html @@ -0,0 +1,20 @@ + + + + + Reference for dynamic-max-width.html + + + + + +
+ + + + + + diff --git a/layout/reftests/forms/input/file/dynamic-max-width.html b/layout/reftests/forms/input/file/dynamic-max-width.html new file mode 100644 index 0000000000..1cad23c169 --- /dev/null +++ b/layout/reftests/forms/input/file/dynamic-max-width.html @@ -0,0 +1,34 @@ + + + + + CSS Test: file control with dynamic change to max-width + + + + + + + +
+ + + + + + diff --git a/layout/reftests/forms/input/file/label-min-inline-size-ref.html b/layout/reftests/forms/input/file/label-min-inline-size-ref.html new file mode 100644 index 0000000000..6e8e1287c3 --- /dev/null +++ b/layout/reftests/forms/input/file/label-min-inline-size-ref.html @@ -0,0 +1,23 @@ + + + + + Testcase for bug 1500530 + + + + +
+ + + diff --git a/layout/reftests/forms/input/file/label-min-inline-size.html b/layout/reftests/forms/input/file/label-min-inline-size.html new file mode 100644 index 0000000000..3c97476211 --- /dev/null +++ b/layout/reftests/forms/input/file/label-min-inline-size.html @@ -0,0 +1,44 @@ + + + + + Testcase for bug 1500530 + + + + + + +
+ + + + diff --git a/layout/reftests/forms/input/file/reftest.list b/layout/reftests/forms/input/file/reftest.list new file mode 100644 index 0000000000..193017a364 --- /dev/null +++ b/layout/reftests/forms/input/file/reftest.list @@ -0,0 +1,12 @@ +fuzzy-if(gtkWidget||webrender,0-1,0-34) == simple.html chrome://reftest/content/forms/input/file/simple-ref.xhtml +fuzzy-if(gtkWidget||webrender,0-1,0-17) == rtl.html chrome://reftest/content/forms/input/file/rtl-ref.xhtml +fuzzy-if(gtkWidget||webrender,0-1,0-34) == size.html chrome://reftest/content/forms/input/file/simple-ref.xhtml +fuzzy-if(gtkWidget||webrender,0-1,0-10) == background.html chrome://reftest/content/forms/input/file/background-ref.xhtml +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 +fuzzy-if(Android,0-2,0-2) fuzzy-if(OSX,0-34,0-134) fails-if(webrender&&!(cocoaWidget||geckoview)) == dynamic-max-width.html dynamic-max-width-ref.html # bug 1496542 for webrender. +== 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 +== button-height.html button-height-ref.html diff --git a/layout/reftests/forms/input/file/rtl-ref.xhtml b/layout/reftests/forms/input/file/rtl-ref.xhtml new file mode 100644 index 0000000000..eb61d45c74 --- /dev/null +++ b/layout/reftests/forms/input/file/rtl-ref.xhtml @@ -0,0 +1,17 @@ + + + + + + vbox { + margin-right: 8px; + } + + + + Browse… + + + diff --git a/layout/reftests/forms/input/file/rtl.html b/layout/reftests/forms/input/file/rtl.html new file mode 100644 index 0000000000..81e841a124 --- /dev/null +++ b/layout/reftests/forms/input/file/rtl.html @@ -0,0 +1,8 @@ + + + +
+ +
+ + diff --git a/layout/reftests/forms/input/file/simple-ref.xhtml b/layout/reftests/forms/input/file/simple-ref.xhtml new file mode 100644 index 0000000000..a9bc3cbd94 --- /dev/null +++ b/layout/reftests/forms/input/file/simple-ref.xhtml @@ -0,0 +1,14 @@ + + + + + + Browse… + + + Browse… + + diff --git a/layout/reftests/forms/input/file/simple.html b/layout/reftests/forms/input/file/simple.html new file mode 100644 index 0000000000..03a2a7bde5 --- /dev/null +++ b/layout/reftests/forms/input/file/simple.html @@ -0,0 +1,8 @@ + + + + +
+ + + diff --git a/layout/reftests/forms/input/file/size.html b/layout/reftests/forms/input/file/size.html new file mode 100644 index 0000000000..33606f935d --- /dev/null +++ b/layout/reftests/forms/input/file/size.html @@ -0,0 +1,9 @@ + + + + + +
+ + + diff --git a/layout/reftests/forms/input/file/style-ref.xhtml b/layout/reftests/forms/input/file/style-ref.xhtml new file mode 100644 index 0000000000..20af35b487 --- /dev/null +++ b/layout/reftests/forms/input/file/style-ref.xhtml @@ -0,0 +1,25 @@ + + + + + + .file { + background-color: blue; + border: 1px red solid; + width: 400px; + padding: 2px; + margin: 5px; + display: inline-block; + } + + .file > label { + /* color only applies to the label */ + color: white; + } + + + Browse… + + diff --git a/layout/reftests/forms/input/file/style.css b/layout/reftests/forms/input/file/style.css new file mode 100644 index 0000000000..5a7c22b251 --- /dev/null +++ b/layout/reftests/forms/input/file/style.css @@ -0,0 +1,61 @@ +vbox, hbox { + margin-top: 8px; + margin-left: 8px; + display: block; +} + +.file { + /* Copy of input properties that apply of forms.css below this */ + color: inherit; + font: -moz-field; + text-rendering: optimizeLegibility; + line-height: normal !important; + text-align: start; + text-transform: none; + word-spacing: normal; + letter-spacing: normal; + text-indent: 0; + user-select: text; + text-shadow: none; + + /* Copy of the type=file part of forms.css below this */ + display: inline; /* this one isn't really a copy... */ + white-space: nowrap; + overflow:hidden; + + -moz-appearance: none; + -moz-binding: none; + cursor: default; + border: none; + background-color: transparent; + padding: 0; +} + +.file > label { + display: inline-block; + + /* Copy from forms.css below this */ + min-width: 12em; + padding-inline-start: 5px; + + color: inherit; + font-size: inherit; + letter-spacing: inherit; + + direction: ltr !important; +} + +.file[dir='rtl'] > label { + /* Copy from forms.css below this */ + padding-inline-start: 0px; + padding-right: 5px; + text-align: right; +} + +.file > button { + /* Copy from forms.css below this */ + height: inherit; + font-size: inherit; + letter-spacing: inherit; + cursor: inherit; +} diff --git a/layout/reftests/forms/input/file/style.html b/layout/reftests/forms/input/file/style.html new file mode 100644 index 0000000000..76fa4d971d --- /dev/null +++ b/layout/reftests/forms/input/file/style.html @@ -0,0 +1,16 @@ + + + + + + + diff --git a/layout/reftests/forms/input/file/width-clip-ref.html b/layout/reftests/forms/input/file/width-clip-ref.html new file mode 100644 index 0000000000..a6c746ac8d --- /dev/null +++ b/layout/reftests/forms/input/file/width-clip-ref.html @@ -0,0 +1,3 @@ +
+
+ diff --git a/layout/reftests/forms/input/file/width-clip.html b/layout/reftests/forms/input/file/width-clip.html new file mode 100644 index 0000000000..d4acd7e27f --- /dev/null +++ b/layout/reftests/forms/input/file/width-clip.html @@ -0,0 +1,3 @@ +
+
+ -- cgit v1.2.3