diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-07 17:32:43 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-07 17:32:43 +0000 |
commit | 6bf0a5cb5034a7e684dcc3500e841785237ce2dd (patch) | |
tree | a68f146d7fa01f0134297619fbe7e33db084e0aa /layout/reftests/forms/textbox | |
parent | Initial commit. (diff) | |
download | thunderbird-upstream.tar.xz thunderbird-upstream.zip |
Adding upstream version 1:115.7.0.upstream/1%115.7.0upstream
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'layout/reftests/forms/textbox')
-rw-r--r-- | layout/reftests/forms/textbox/accesskey-1-dyn.xhtml | 42 | ||||
-rw-r--r-- | layout/reftests/forms/textbox/accesskey-1-notref.xhtml | 35 | ||||
-rw-r--r-- | layout/reftests/forms/textbox/accesskey-1.xhtml | 35 | ||||
-rw-r--r-- | layout/reftests/forms/textbox/accesskey-2-ref.xhtml | 36 | ||||
-rw-r--r-- | layout/reftests/forms/textbox/accesskey-2.xhtml | 36 | ||||
-rw-r--r-- | layout/reftests/forms/textbox/accesskey-3-notref.xhtml | 36 | ||||
-rw-r--r-- | layout/reftests/forms/textbox/accesskey-3-ref.xhtml | 36 | ||||
-rw-r--r-- | layout/reftests/forms/textbox/accesskey-3.xhtml | 36 | ||||
-rw-r--r-- | layout/reftests/forms/textbox/accesskey-4-notref.xhtml | 36 | ||||
-rw-r--r-- | layout/reftests/forms/textbox/accesskey-4-ref.xhtml | 36 | ||||
-rw-r--r-- | layout/reftests/forms/textbox/accesskey-4.xhtml | 36 | ||||
-rw-r--r-- | layout/reftests/forms/textbox/align-baseline-1-ref.xhtml | 26 | ||||
-rw-r--r-- | layout/reftests/forms/textbox/align-baseline-1.xhtml | 34 | ||||
-rw-r--r-- | layout/reftests/forms/textbox/reftest.list | 11 | ||||
-rw-r--r-- | layout/reftests/forms/textbox/setsize-ref.xhtml | 9 | ||||
-rw-r--r-- | layout/reftests/forms/textbox/setsize.xhtml | 8 |
16 files changed, 488 insertions, 0 deletions
diff --git a/layout/reftests/forms/textbox/accesskey-1-dyn.xhtml b/layout/reftests/forms/textbox/accesskey-1-dyn.xhtml new file mode 100644 index 0000000000..797d61b02c --- /dev/null +++ b/layout/reftests/forms/textbox/accesskey-1-dyn.xhtml @@ -0,0 +1,42 @@ +<?xml version="1.0"?> +<?xml-stylesheet href="chrome://global/skin/global.css"?> +<window title="textbox access key tests (see bug 698185)" + xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul" + xmlns:html="http://www.w3.org/1999/xhtml"> + <html:style type="text/css"> + hbox { + margin-top: 0px; + padding-top: 0px; + font-size: 36px; + } + label, input { + -moz-appearance: none; + background: inherit; + border: none 0px; + } + label { + margin-top: 0px; + padding-top: 0px; + margin-bottom: 0px; + padding-bottom: 0px; + } + input { + margin-top: 12px; + padding-top: 8px; + margin-bottom: 5px; + padding-bottom: 9px; + } + </html:style> + + <hbox align="baseline"> + <label value="foo" accesskey="s"/> + <input xmlns="http://www.w3.org/1999/xhtml" value="text"/> + </hbox> + <script> + onload = () => { + let label = document.querySelector("label"); + label.getBoundingClientRect(); + label.value = "test"; + }; + </script> +</window> diff --git a/layout/reftests/forms/textbox/accesskey-1-notref.xhtml b/layout/reftests/forms/textbox/accesskey-1-notref.xhtml new file mode 100644 index 0000000000..606873c38d --- /dev/null +++ b/layout/reftests/forms/textbox/accesskey-1-notref.xhtml @@ -0,0 +1,35 @@ +<?xml version="1.0"?> +<?xml-stylesheet href="chrome://global/skin/global.css"?> +<window title="textbox access key tests (see bug 698185)" + xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul" + xmlns:html="http://www.w3.org/1999/xhtml"> + <html:style type="text/css"> + hbox { + margin-top: 0px; + padding-top: 0px; + font-size: 36px; + } + label, input { + -moz-appearance: none; + background: inherit; + border: none 0px; + } + label { + margin-top: 0px; + padding-top: 0px; + margin-bottom: 0px; + padding-bottom: 0px; + } + input { + margin-top: 12px; + padding-top: 8px; + margin-bottom: 5px; + padding-bottom: 9px; + } + </html:style> + + <hbox align="baseline"> + <label value="test"/> + <input xmlns="http://www.w3.org/1999/xhtml" value="text"/> + </hbox> +</window> diff --git a/layout/reftests/forms/textbox/accesskey-1.xhtml b/layout/reftests/forms/textbox/accesskey-1.xhtml new file mode 100644 index 0000000000..49846b8c47 --- /dev/null +++ b/layout/reftests/forms/textbox/accesskey-1.xhtml @@ -0,0 +1,35 @@ +<?xml version="1.0"?> +<?xml-stylesheet href="chrome://global/skin/global.css"?> +<window title="textbox access key tests (see bug 698185)" + xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul" + xmlns:html="http://www.w3.org/1999/xhtml"> + <html:style type="text/css"> + hbox { + margin-top: 0px; + padding-top: 0px; + font-size: 36px; + } + label, input { + -moz-appearance: none; + background: inherit; + border: none 0px; + } + label { + margin-top: 0px; + padding-top: 0px; + margin-bottom: 0px; + padding-bottom: 0px; + } + input { + margin-top: 12px; + padding-top: 8px; + margin-bottom: 5px; + padding-bottom: 9px; + } + </html:style> + + <hbox align="baseline"> + <label value="test" accesskey="s"/> + <input xmlns="http://www.w3.org/1999/xhtml" value="text"/> + </hbox> +</window> diff --git a/layout/reftests/forms/textbox/accesskey-2-ref.xhtml b/layout/reftests/forms/textbox/accesskey-2-ref.xhtml new file mode 100644 index 0000000000..a7ceb4a628 --- /dev/null +++ b/layout/reftests/forms/textbox/accesskey-2-ref.xhtml @@ -0,0 +1,36 @@ +<?xml version="1.0"?> +<?xml-stylesheet href="chrome://global/skin/global.css"?> +<window title="textbox access key tests (see bug 698185)" + xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul" + xmlns:html="http://www.w3.org/1999/xhtml"> + <html:style type="text/css"> + hbox { + margin-top: 0px; + padding-top: 0px; + font-size: 36px; + } + label, input { + -moz-appearance: none; + background: inherit; + border: none 0px; + } + label { + margin-top: 0px; + padding-top: 0px; + margin-bottom: 0px; + padding-bottom: 0px; + } + input { + margin-top: 12px; + padding-top: 8px; + margin-bottom: 5px; + padding-bottom: 9px; + } + </html:style> + + <hbox align="baseline"> + <!-- access key in LTR-overridden Arabic text --> + <label value="‭يبرعلا‬ test" accesskey="ع"/> + <input xmlns="http://www.w3.org/1999/xhtml" value=""/> + </hbox> +</window> diff --git a/layout/reftests/forms/textbox/accesskey-2.xhtml b/layout/reftests/forms/textbox/accesskey-2.xhtml new file mode 100644 index 0000000000..3e1efb03ff --- /dev/null +++ b/layout/reftests/forms/textbox/accesskey-2.xhtml @@ -0,0 +1,36 @@ +<?xml version="1.0"?> +<?xml-stylesheet href="chrome://global/skin/global.css"?> +<window title="textbox access key tests (see bug 698185)" + xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul" + xmlns:html="http://www.w3.org/1999/xhtml"> + <html:style type="text/css"> + hbox { + margin-top: 0px; + padding-top: 0px; + font-size: 36px; + } + label, input { + -moz-appearance: none; + background: inherit; + border: none 0px; + } + label { + margin-top: 0px; + padding-top: 0px; + margin-bottom: 0px; + padding-bottom: 0px; + } + input { + margin-top: 12px; + padding-top: 8px; + margin-bottom: 5px; + padding-bottom: 9px; + } + </html:style> + + <hbox align="baseline"> + <!-- access key in RTL Arabic text --> + <label value="العربي test" accesskey="ع"/> + <input xmlns="http://www.w3.org/1999/xhtml" value=""/> + </hbox> +</window> diff --git a/layout/reftests/forms/textbox/accesskey-3-notref.xhtml b/layout/reftests/forms/textbox/accesskey-3-notref.xhtml new file mode 100644 index 0000000000..26d2cb7016 --- /dev/null +++ b/layout/reftests/forms/textbox/accesskey-3-notref.xhtml @@ -0,0 +1,36 @@ +<?xml version="1.0"?> +<?xml-stylesheet href="chrome://global/skin/global.css"?> +<window title="textbox access key tests (see bug 698185)" + xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul" + xmlns:html="http://www.w3.org/1999/xhtml"> + <html:style type="text/css"> + hbox { + margin-top: 0px; + padding-top: 0px; + font-size: 36px; + } + label, input { + -moz-appearance: none; + background: inherit; + border: none 0px; + } + label { + margin-top: 0px; + padding-top: 0px; + margin-bottom: 0px; + padding-bottom: 0px; + } + input { + margin-top: 12px; + padding-top: 8px; + margin-bottom: 5px; + padding-bottom: 9px; + } + </html:style> + + <hbox align="baseline"> + <!-- no access key, for != test --> + <label value="العربي hello world"/> + <input xmlns="http://www.w3.org/1999/xhtml" value=""/> + </hbox> +</window> diff --git a/layout/reftests/forms/textbox/accesskey-3-ref.xhtml b/layout/reftests/forms/textbox/accesskey-3-ref.xhtml new file mode 100644 index 0000000000..3f29077e4e --- /dev/null +++ b/layout/reftests/forms/textbox/accesskey-3-ref.xhtml @@ -0,0 +1,36 @@ +<?xml version="1.0"?> +<?xml-stylesheet href="chrome://global/skin/global.css"?> +<window title="textbox access key tests (see bug 698185)" + xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul" + xmlns:html="http://www.w3.org/1999/xhtml"> + <html:style type="text/css"> + hbox { + margin-top: 0px; + padding-top: 0px; + font-size: 36px; + } + label, input { + -moz-appearance: none; + background: inherit; + border: none 0px; + } + label { + margin-top: 0px; + padding-top: 0px; + margin-bottom: 0px; + padding-bottom: 0px; + } + input { + margin-top: 12px; + padding-top: 8px; + margin-bottom: 5px; + padding-bottom: 9px; + } + </html:style> + + <hbox align="baseline"> + <!-- access key in LTR text that follows RTL text (mixed direction) --> + <label value="العربي hello world" accesskey="d"/> + <input xmlns="http://www.w3.org/1999/xhtml" value=""/> + </hbox> +</window> diff --git a/layout/reftests/forms/textbox/accesskey-3.xhtml b/layout/reftests/forms/textbox/accesskey-3.xhtml new file mode 100644 index 0000000000..752e448919 --- /dev/null +++ b/layout/reftests/forms/textbox/accesskey-3.xhtml @@ -0,0 +1,36 @@ +<?xml version="1.0"?> +<?xml-stylesheet href="chrome://global/skin/global.css"?> +<window title="textbox access key tests (see bug 698185)" + xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul" + xmlns:html="http://www.w3.org/1999/xhtml"> + <html:style type="text/css"> + hbox { + margin-top: 0px; + padding-top: 0px; + font-size: 36px; + } + label, input { + -moz-appearance: none; + background: inherit; + border: none 0px; + } + label { + margin-top: 0px; + padding-top: 0px; + margin-bottom: 0px; + padding-bottom: 0px; + } + input { + margin-top: 12px; + padding-top: 8px; + margin-bottom: 5px; + padding-bottom: 9px; + } + </html:style> + + <hbox align="baseline"> + <!-- access key in RTL-overridden English text --> + <label value="العربي hello ‮dlrow‬" accesskey="d"/> + <input xmlns="http://www.w3.org/1999/xhtml" value=""/> + </hbox> +</window> diff --git a/layout/reftests/forms/textbox/accesskey-4-notref.xhtml b/layout/reftests/forms/textbox/accesskey-4-notref.xhtml new file mode 100644 index 0000000000..26d2cb7016 --- /dev/null +++ b/layout/reftests/forms/textbox/accesskey-4-notref.xhtml @@ -0,0 +1,36 @@ +<?xml version="1.0"?> +<?xml-stylesheet href="chrome://global/skin/global.css"?> +<window title="textbox access key tests (see bug 698185)" + xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul" + xmlns:html="http://www.w3.org/1999/xhtml"> + <html:style type="text/css"> + hbox { + margin-top: 0px; + padding-top: 0px; + font-size: 36px; + } + label, input { + -moz-appearance: none; + background: inherit; + border: none 0px; + } + label { + margin-top: 0px; + padding-top: 0px; + margin-bottom: 0px; + padding-bottom: 0px; + } + input { + margin-top: 12px; + padding-top: 8px; + margin-bottom: 5px; + padding-bottom: 9px; + } + </html:style> + + <hbox align="baseline"> + <!-- no access key, for != test --> + <label value="العربي hello world"/> + <input xmlns="http://www.w3.org/1999/xhtml" value=""/> + </hbox> +</window> diff --git a/layout/reftests/forms/textbox/accesskey-4-ref.xhtml b/layout/reftests/forms/textbox/accesskey-4-ref.xhtml new file mode 100644 index 0000000000..1522f92468 --- /dev/null +++ b/layout/reftests/forms/textbox/accesskey-4-ref.xhtml @@ -0,0 +1,36 @@ +<?xml version="1.0"?> +<?xml-stylesheet href="chrome://global/skin/global.css"?> +<window title="textbox access key tests (see bug 698185)" + xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul" + xmlns:html="http://www.w3.org/1999/xhtml"> + <html:style type="text/css"> + hbox { + margin-top: 0px; + padding-top: 0px; + font-size: 36px; + } + label, input { + -moz-appearance: none; + background: inherit; + border: none 0px; + } + label { + margin-top: 0px; + padding-top: 0px; + margin-bottom: 0px; + padding-bottom: 0px; + } + input { + margin-top: 12px; + padding-top: 8px; + margin-bottom: 5px; + padding-bottom: 9px; + } + </html:style> + + <hbox align="baseline"> + <!-- access key in English text following LTR-overridden Arabic --> + <label value="‭يبرعلا‬ hello world" accesskey="w"/> + <input xmlns="http://www.w3.org/1999/xhtml" value=""/> + </hbox> +</window> diff --git a/layout/reftests/forms/textbox/accesskey-4.xhtml b/layout/reftests/forms/textbox/accesskey-4.xhtml new file mode 100644 index 0000000000..b7ad5b0b1e --- /dev/null +++ b/layout/reftests/forms/textbox/accesskey-4.xhtml @@ -0,0 +1,36 @@ +<?xml version="1.0"?> +<?xml-stylesheet href="chrome://global/skin/global.css"?> +<window title="textbox access key tests (see bug 698185)" + xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul" + xmlns:html="http://www.w3.org/1999/xhtml"> + <html:style type="text/css"> + hbox { + margin-top: 0px; + padding-top: 0px; + font-size: 36px; + } + label, input { + -moz-appearance: none; + background: inherit; + border: none 0px; + } + label { + margin-top: 0px; + padding-top: 0px; + margin-bottom: 0px; + padding-bottom: 0px; + } + input { + margin-top: 12px; + padding-top: 8px; + margin-bottom: 5px; + padding-bottom: 9px; + } + </html:style> + + <hbox align="baseline"> + <!-- access key in English text following RTL Arabic --> + <label value="العربي hello world" accesskey="w"/> + <input xmlns="http://www.w3.org/1999/xhtml" value=""/> + </hbox> +</window> diff --git a/layout/reftests/forms/textbox/align-baseline-1-ref.xhtml b/layout/reftests/forms/textbox/align-baseline-1-ref.xhtml new file mode 100644 index 0000000000..8ad687f2d4 --- /dev/null +++ b/layout/reftests/forms/textbox/align-baseline-1-ref.xhtml @@ -0,0 +1,26 @@ +<?xml version="1.0"?> +<?xml-stylesheet href="chrome://global/skin/global.css"?> +<window title="textbox align=baseline reference" + xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul" + xmlns:html="http://www.w3.org/1999/xhtml"> + <html:style type="text/css"> + #container { + margin-top: 12px; + padding-top: 8px; + } + label, input { + -moz-appearance: none; + background: inherit; + border: none 0px; + margin-top: 0px; + padding-top: 0px; + margin-bottom: 0px; + padding-bottom: 0px; + } + </html:style> + + <hbox id="container" align="center"> + <label value="test"/> + <input xmlns="http://www.w3.org/1999/xhtml" value="text"/> + </hbox> +</window> diff --git a/layout/reftests/forms/textbox/align-baseline-1.xhtml b/layout/reftests/forms/textbox/align-baseline-1.xhtml new file mode 100644 index 0000000000..eab22d761b --- /dev/null +++ b/layout/reftests/forms/textbox/align-baseline-1.xhtml @@ -0,0 +1,34 @@ +<?xml version="1.0"?> +<?xml-stylesheet href="chrome://global/skin/global.css"?> +<window title="textbox align=baseline test (bug 494901)" + xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul" + xmlns:html="http://www.w3.org/1999/xhtml"> + <html:style type="text/css"> + hbox { + margin-top: 0px; + padding-top: 0px; + } + label, input { + -moz-appearance: none; + background: inherit; + border: none 0px; + } + label { + margin-top: 0px; + padding-top: 0px; + margin-bottom: 0px; + padding-bottom: 0px; + } + input { + margin-top: 12px; + padding-top: 8px; + margin-bottom: 5px; + padding-bottom: 9px; + } + </html:style> + + <hbox align="baseline"> + <label value="test"/> + <input xmlns="http://www.w3.org/1999/xhtml" value="text"/> + </hbox> +</window> diff --git a/layout/reftests/forms/textbox/reftest.list b/layout/reftests/forms/textbox/reftest.list new file mode 100644 index 0000000000..edb83da6e2 --- /dev/null +++ b/layout/reftests/forms/textbox/reftest.list @@ -0,0 +1,11 @@ +# access-key tests are no use on OS X because access keys are not indicated visually +# no real XUL theme on Android so we just skip +skip-if(cocoaWidget||Android) != chrome://reftest/content/forms/textbox/accesskey-1.xhtml chrome://reftest/content/forms/textbox/accesskey-1-notref.xhtml +== chrome://reftest/content/forms/textbox/accesskey-1-dyn.xhtml chrome://reftest/content/forms/textbox/accesskey-1.xhtml +fuzzy(0-1,0-3) skip-if(cocoaWidget||Android) == chrome://reftest/content/forms/textbox/accesskey-2.xhtml chrome://reftest/content/forms/textbox/accesskey-2-ref.xhtml +skip-if(cocoaWidget||Android) == chrome://reftest/content/forms/textbox/accesskey-3.xhtml chrome://reftest/content/forms/textbox/accesskey-3-ref.xhtml +skip-if(cocoaWidget||Android) != chrome://reftest/content/forms/textbox/accesskey-3.xhtml chrome://reftest/content/forms/textbox/accesskey-3-notref.xhtml +fuzzy(0-1,0-4) skip-if(cocoaWidget||Android) == chrome://reftest/content/forms/textbox/accesskey-4.xhtml chrome://reftest/content/forms/textbox/accesskey-4-ref.xhtml +skip-if(cocoaWidget||Android) != chrome://reftest/content/forms/textbox/accesskey-4.xhtml chrome://reftest/content/forms/textbox/accesskey-4-notref.xhtml +skip-if(Android) == chrome://reftest/content/forms/textbox/align-baseline-1.xhtml chrome://reftest/content/forms/textbox/align-baseline-1-ref.xhtml # test for bug 494901 +skip-if(Android) == chrome://reftest/content/forms/textbox/setsize.xhtml chrome://reftest/content/forms/textbox/setsize-ref.xhtml diff --git a/layout/reftests/forms/textbox/setsize-ref.xhtml b/layout/reftests/forms/textbox/setsize-ref.xhtml new file mode 100644 index 0000000000..5db79ff9d9 --- /dev/null +++ b/layout/reftests/forms/textbox/setsize-ref.xhtml @@ -0,0 +1,9 @@ +<?xml version="1.0"?> +<?xml-stylesheet href="chrome://global/skin/global.css" type="text/css"?> + +<window xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul" xmlns:html="http://www.w3.org/1999/xhtml"> + +<hbox style="appearance: auto; -moz-default-appearance: textarea; width: 200px; height: 200px;"/> +<html:div style="position:fixed;top:0;left:0;width:100%;height:100%;"></html:div> + +</window> diff --git a/layout/reftests/forms/textbox/setsize.xhtml b/layout/reftests/forms/textbox/setsize.xhtml new file mode 100644 index 0000000000..14ccdfb27b --- /dev/null +++ b/layout/reftests/forms/textbox/setsize.xhtml @@ -0,0 +1,8 @@ +<?xml version="1.0"?> +<?xml-stylesheet href="chrome://global/skin/global.css" type="text/css"?> + +<window xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul" xmlns:html="http://www.w3.org/1999/xhtml"> + +<html:textarea style="width: 200px; height: 200px; margin: 0; resize: none; box-sizing: border-box;"/> +<html:div style="position:fixed;top:0;left:0;width:100%;height:100%;"></html:div> +</window> |