summaryrefslogtreecommitdiffstats
path: root/layout/reftests/css-ui-invalid/default-style
diff options
context:
space:
mode:
authorMatt A. Tobin <mattatobin@localhost.localdomain>2018-02-02 04:16:08 -0500
committerMatt A. Tobin <mattatobin@localhost.localdomain>2018-02-02 04:16:08 -0500
commit5f8de423f190bbb79a62f804151bc24824fa32d8 (patch)
tree10027f336435511475e392454359edea8e25895d /layout/reftests/css-ui-invalid/default-style
parent49ee0794b5d912db1f95dce6eb52d781dc210db5 (diff)
downloadUXP-5f8de423f190bbb79a62f804151bc24824fa32d8.tar
UXP-5f8de423f190bbb79a62f804151bc24824fa32d8.tar.gz
UXP-5f8de423f190bbb79a62f804151bc24824fa32d8.tar.lz
UXP-5f8de423f190bbb79a62f804151bc24824fa32d8.tar.xz
UXP-5f8de423f190bbb79a62f804151bc24824fa32d8.zip
Add m-esr52 at 52.6.0
Diffstat (limited to 'layout/reftests/css-ui-invalid/default-style')
-rw-r--r--layout/reftests/css-ui-invalid/default-style/button-focus-ref.html7
-rw-r--r--layout/reftests/css-ui-invalid/default-style/button-focus.html13
-rw-r--r--layout/reftests/css-ui-invalid/default-style/button-ref.html7
-rw-r--r--layout/reftests/css-ui-invalid/default-style/button.html13
-rw-r--r--layout/reftests/css-ui-invalid/default-style/fieldset-ref.html7
-rw-r--r--layout/reftests/css-ui-invalid/default-style/fieldset.html13
-rw-r--r--layout/reftests/css-ui-invalid/default-style/input-focus-ref.html7
-rw-r--r--layout/reftests/css-ui-invalid/default-style/input-focus.html13
-rw-r--r--layout/reftests/css-ui-invalid/default-style/input-ref.html7
-rw-r--r--layout/reftests/css-ui-invalid/default-style/input.html13
-rw-r--r--layout/reftests/css-ui-invalid/default-style/output-ref.html7
-rw-r--r--layout/reftests/css-ui-invalid/default-style/output.html13
-rw-r--r--layout/reftests/css-ui-invalid/default-style/reftest-stylo.list13
-rw-r--r--layout/reftests/css-ui-invalid/default-style/reftest.list10
-rw-r--r--layout/reftests/css-ui-invalid/default-style/select-focus-ref.html7
-rw-r--r--layout/reftests/css-ui-invalid/default-style/select-focus.html13
-rw-r--r--layout/reftests/css-ui-invalid/default-style/select-ref.html7
-rw-r--r--layout/reftests/css-ui-invalid/default-style/select.html13
-rw-r--r--layout/reftests/css-ui-invalid/default-style/style.css14
-rw-r--r--layout/reftests/css-ui-invalid/default-style/textarea-focus-ref.html7
-rw-r--r--layout/reftests/css-ui-invalid/default-style/textarea-focus.html13
-rw-r--r--layout/reftests/css-ui-invalid/default-style/textarea-ref.html7
-rw-r--r--layout/reftests/css-ui-invalid/default-style/textarea.html13
23 files changed, 237 insertions, 0 deletions
diff --git a/layout/reftests/css-ui-invalid/default-style/button-focus-ref.html b/layout/reftests/css-ui-invalid/default-style/button-focus-ref.html
new file mode 100644
index 000000000..9046f5c74
--- /dev/null
+++ b/layout/reftests/css-ui-invalid/default-style/button-focus-ref.html
@@ -0,0 +1,7 @@
+<!DOCTYPE>
+<html class="reftest-wait">
+ <link rel='stylesheet' type='text/css' href='style.css'>
+ <body onload="document.getElementsByTagName('button')[0].focus();">
+ <button class='invalid-ref' onfocus="document.documentElement.className='';"></button>
+ </body>
+</html>
diff --git a/layout/reftests/css-ui-invalid/default-style/button-focus.html b/layout/reftests/css-ui-invalid/default-style/button-focus.html
new file mode 100644
index 000000000..e34dad846
--- /dev/null
+++ b/layout/reftests/css-ui-invalid/default-style/button-focus.html
@@ -0,0 +1,13 @@
+<!DOCTYPE>
+<html class="reftest-wait">
+ <script>
+ function onloadHandler()
+ {
+ document.getElementById('e').setCustomValidity('foo');
+ document.getElementById('e').focus();
+ }
+ </script>
+ <body onload="onloadHandler();">
+ <button id='e' onfocus="document.documentElement.className='';"></button>
+ </body>
+</html>
diff --git a/layout/reftests/css-ui-invalid/default-style/button-ref.html b/layout/reftests/css-ui-invalid/default-style/button-ref.html
new file mode 100644
index 000000000..71dbb9cf8
--- /dev/null
+++ b/layout/reftests/css-ui-invalid/default-style/button-ref.html
@@ -0,0 +1,7 @@
+<!DOCTYPE>
+<html>
+ <link rel='stylesheet' type='text/css' href='style.css'>
+ <body>
+ <button class='invalid-ref'></button>
+ </body>
+</html>
diff --git a/layout/reftests/css-ui-invalid/default-style/button.html b/layout/reftests/css-ui-invalid/default-style/button.html
new file mode 100644
index 000000000..3b240b7e4
--- /dev/null
+++ b/layout/reftests/css-ui-invalid/default-style/button.html
@@ -0,0 +1,13 @@
+<!DOCTYPE>
+<html class="reftest-wait">
+ <script>
+ function onloadHandler()
+ {
+ document.getElementById('e').setCustomValidity('foo');
+ document.documentElement.className='';
+ }
+ </script>
+ <body onload="onloadHandler();">
+ <button id='e'></button>
+ </body>
+</html>
diff --git a/layout/reftests/css-ui-invalid/default-style/fieldset-ref.html b/layout/reftests/css-ui-invalid/default-style/fieldset-ref.html
new file mode 100644
index 000000000..028918324
--- /dev/null
+++ b/layout/reftests/css-ui-invalid/default-style/fieldset-ref.html
@@ -0,0 +1,7 @@
+<!DOCTYPE>
+<html>
+ <link rel='stylesheet' type='text/css' href='style.css'>
+ <body>
+ <fieldset class='barred-ref'></fieldset>
+ </body>
+</html>
diff --git a/layout/reftests/css-ui-invalid/default-style/fieldset.html b/layout/reftests/css-ui-invalid/default-style/fieldset.html
new file mode 100644
index 000000000..e2b3b1ac1
--- /dev/null
+++ b/layout/reftests/css-ui-invalid/default-style/fieldset.html
@@ -0,0 +1,13 @@
+<!DOCTYPE>
+<html class="reftest-wait">
+ <script>
+ function onloadHandler()
+ {
+ document.getElementById('e').setCustomValidity('foo');
+ document.documentElement.className='';
+ }
+ </script>
+ <body onload="onloadHandler();">
+ <fieldset id='e'></fieldset>
+ </body>
+</html>
diff --git a/layout/reftests/css-ui-invalid/default-style/input-focus-ref.html b/layout/reftests/css-ui-invalid/default-style/input-focus-ref.html
new file mode 100644
index 000000000..1180844f6
--- /dev/null
+++ b/layout/reftests/css-ui-invalid/default-style/input-focus-ref.html
@@ -0,0 +1,7 @@
+<!DOCTYPE>
+<html class="reftest-wait">
+ <link rel='stylesheet' type='text/css' href='style.css'>
+ <body onload="document.getElementsByTagName('input')[0].focus();">
+ <input class='invalid-ref' onfocus="document.documentElement.className='';">
+ </body>
+</html>
diff --git a/layout/reftests/css-ui-invalid/default-style/input-focus.html b/layout/reftests/css-ui-invalid/default-style/input-focus.html
new file mode 100644
index 000000000..ac9d554a4
--- /dev/null
+++ b/layout/reftests/css-ui-invalid/default-style/input-focus.html
@@ -0,0 +1,13 @@
+<!DOCTYPE>
+<html class="reftest-wait">
+ <script>
+ function onloadHandler()
+ {
+ document.getElementById('e').setCustomValidity('foo');
+ document.getElementById('e').focus();
+ }
+ </script>
+ <body onload="onloadHandler();">
+ <input id='e' onfocus="document.documentElement.className='';">
+ </body>
+</html>
diff --git a/layout/reftests/css-ui-invalid/default-style/input-ref.html b/layout/reftests/css-ui-invalid/default-style/input-ref.html
new file mode 100644
index 000000000..31f6e35f2
--- /dev/null
+++ b/layout/reftests/css-ui-invalid/default-style/input-ref.html
@@ -0,0 +1,7 @@
+<!DOCTYPE>
+<html>
+ <link rel='stylesheet' type='text/css' href='style.css'>
+ <body>
+ <input class='invalid-ref'>
+ </body>
+</html>
diff --git a/layout/reftests/css-ui-invalid/default-style/input.html b/layout/reftests/css-ui-invalid/default-style/input.html
new file mode 100644
index 000000000..e0d1bf6a3
--- /dev/null
+++ b/layout/reftests/css-ui-invalid/default-style/input.html
@@ -0,0 +1,13 @@
+<!DOCTYPE>
+<html class="reftest-wait">
+ <script>
+ function onloadHandler()
+ {
+ document.getElementById('e').setCustomValidity('foo');
+ document.documentElement.className='';
+ }
+ </script>
+ <body onload="onloadHandler();">
+ <input id='e'>
+ </body>
+</html>
diff --git a/layout/reftests/css-ui-invalid/default-style/output-ref.html b/layout/reftests/css-ui-invalid/default-style/output-ref.html
new file mode 100644
index 000000000..f1ab90bc6
--- /dev/null
+++ b/layout/reftests/css-ui-invalid/default-style/output-ref.html
@@ -0,0 +1,7 @@
+<!DOCTYPE>
+<html>
+ <link rel='stylesheet' type='text/css' href='style.css'>
+ <body>
+ <output class='invalid-ref'>foo</output>
+ </body>
+</html>
diff --git a/layout/reftests/css-ui-invalid/default-style/output.html b/layout/reftests/css-ui-invalid/default-style/output.html
new file mode 100644
index 000000000..6da555bbf
--- /dev/null
+++ b/layout/reftests/css-ui-invalid/default-style/output.html
@@ -0,0 +1,13 @@
+<!DOCTYPE>
+<html class="reftest-wait">
+ <script>
+ function onloadHandler()
+ {
+ document.getElementById('e').setCustomValidity('foo');
+ document.documentElement.className='';
+ }
+ </script>
+ <body onload="onloadHandler();">
+ <output id='e'>foo</output>
+ </body>
+</html>
diff --git a/layout/reftests/css-ui-invalid/default-style/reftest-stylo.list b/layout/reftests/css-ui-invalid/default-style/reftest-stylo.list
new file mode 100644
index 000000000..b2a2c35d9
--- /dev/null
+++ b/layout/reftests/css-ui-invalid/default-style/reftest-stylo.list
@@ -0,0 +1,13 @@
+# DO NOT EDIT! This is a auto-generated temporary list for Stylo testing
+== input.html input.html
+== button.html button.html
+== textarea.html textarea.html
+== select.html select.html
+== fieldset.html fieldset.html
+== output.html output.html
+random-if(winWidget) needs-focus == input-focus.html input-focus.html
+# Intermittent failures, bug 660224
+needs-focus == button-focus.html button-focus.html
+needs-focus == textarea-focus.html textarea-focus.html
+random-if(winWidget) needs-focus == select-focus.html select-focus.html
+# Intermittent failures, bug 660224
diff --git a/layout/reftests/css-ui-invalid/default-style/reftest.list b/layout/reftests/css-ui-invalid/default-style/reftest.list
new file mode 100644
index 000000000..d647b0f74
--- /dev/null
+++ b/layout/reftests/css-ui-invalid/default-style/reftest.list
@@ -0,0 +1,10 @@
+== input.html input-ref.html
+== button.html button-ref.html
+== textarea.html textarea-ref.html
+== select.html select-ref.html
+== fieldset.html fieldset-ref.html
+== output.html output-ref.html
+random-if(winWidget) needs-focus == input-focus.html input-focus-ref.html # Intermittent failures, bug 660224
+needs-focus == button-focus.html button-focus-ref.html
+needs-focus == textarea-focus.html textarea-focus-ref.html
+random-if(winWidget) needs-focus == select-focus.html select-focus-ref.html # Intermittent failures, bug 660224
diff --git a/layout/reftests/css-ui-invalid/default-style/select-focus-ref.html b/layout/reftests/css-ui-invalid/default-style/select-focus-ref.html
new file mode 100644
index 000000000..42b8da524
--- /dev/null
+++ b/layout/reftests/css-ui-invalid/default-style/select-focus-ref.html
@@ -0,0 +1,7 @@
+<!DOCTYPE>
+<html class="reftest-wait">
+ <link rel='stylesheet' type='text/css' href='style.css'>
+ <body onload="document.getElementsByTagName('select')[0].focus();">
+ <select class='invalid-ref' onfocus="document.documentElement.className='';"></select>
+ </body>
+</html>
diff --git a/layout/reftests/css-ui-invalid/default-style/select-focus.html b/layout/reftests/css-ui-invalid/default-style/select-focus.html
new file mode 100644
index 000000000..946e07815
--- /dev/null
+++ b/layout/reftests/css-ui-invalid/default-style/select-focus.html
@@ -0,0 +1,13 @@
+<!DOCTYPE>
+<html class="reftest-wait">
+ <script>
+ function onloadHandler()
+ {
+ document.getElementById('e').setCustomValidity('foo');
+ document.getElementById('e').focus();
+ }
+ </script>
+ <body onload="onloadHandler();">
+ <select id='e' onfocus="document.documentElement.className='';"></select>
+ </body>
+</html>
diff --git a/layout/reftests/css-ui-invalid/default-style/select-ref.html b/layout/reftests/css-ui-invalid/default-style/select-ref.html
new file mode 100644
index 000000000..3eed47082
--- /dev/null
+++ b/layout/reftests/css-ui-invalid/default-style/select-ref.html
@@ -0,0 +1,7 @@
+<!DOCTYPE>
+<html>
+ <link rel='stylesheet' type='text/css' href='style.css'>
+ <body>
+ <select class='invalid-ref'></select>
+ </body>
+</html>
diff --git a/layout/reftests/css-ui-invalid/default-style/select.html b/layout/reftests/css-ui-invalid/default-style/select.html
new file mode 100644
index 000000000..f05241f9e
--- /dev/null
+++ b/layout/reftests/css-ui-invalid/default-style/select.html
@@ -0,0 +1,13 @@
+<!DOCTYPE>
+<html class="reftest-wait">
+ <script>
+ function onloadHandler()
+ {
+ document.getElementById('e').setCustomValidity('foo');
+ document.documentElement.className='';
+ }
+ </script>
+ <body onload="onloadHandler();">
+ <select id='e'></select>
+ </body>
+</html>
diff --git a/layout/reftests/css-ui-invalid/default-style/style.css b/layout/reftests/css-ui-invalid/default-style/style.css
new file mode 100644
index 000000000..3f2f29df7
--- /dev/null
+++ b/layout/reftests/css-ui-invalid/default-style/style.css
@@ -0,0 +1,14 @@
+:not(output).invalid-ref {
+ box-shadow: 0 0 1.5px 1px red;
+}
+
+:not(output):-moz-focusring.invalid-ref {
+ box-shadow: 0 0 2px 2px rgba(255,0,0,0.4);
+}
+
+output.invalid-ref {
+ color: red;
+}
+
+.barred-ref {
+}
diff --git a/layout/reftests/css-ui-invalid/default-style/textarea-focus-ref.html b/layout/reftests/css-ui-invalid/default-style/textarea-focus-ref.html
new file mode 100644
index 000000000..942390f87
--- /dev/null
+++ b/layout/reftests/css-ui-invalid/default-style/textarea-focus-ref.html
@@ -0,0 +1,7 @@
+<!DOCTYPE>
+<html class="reftest-wait">
+ <link rel='stylesheet' type='text/css' href='style.css'>
+ <body onload="document.getElementsByTagName('textarea')[0].focus();">
+ <textarea class='invalid-ref' onfocus="document.documentElement.className='';"></textarea>
+ </body>
+</html>
diff --git a/layout/reftests/css-ui-invalid/default-style/textarea-focus.html b/layout/reftests/css-ui-invalid/default-style/textarea-focus.html
new file mode 100644
index 000000000..0f9d79026
--- /dev/null
+++ b/layout/reftests/css-ui-invalid/default-style/textarea-focus.html
@@ -0,0 +1,13 @@
+<!DOCTYPE>
+<html class="reftest-wait">
+ <script>
+ function onloadHandler()
+ {
+ document.getElementById('e').setCustomValidity('foo');
+ document.getElementById('e').focus();
+ }
+ </script>
+ <body onload="onloadHandler();">
+ <textarea id='e' onfocus="document.documentElement.className='';"></textarea>
+ </body>
+</html>
diff --git a/layout/reftests/css-ui-invalid/default-style/textarea-ref.html b/layout/reftests/css-ui-invalid/default-style/textarea-ref.html
new file mode 100644
index 000000000..c7037764f
--- /dev/null
+++ b/layout/reftests/css-ui-invalid/default-style/textarea-ref.html
@@ -0,0 +1,7 @@
+<!DOCTYPE>
+<html>
+ <link rel='stylesheet' type='text/css' href='style.css'>
+ <body>
+ <textarea class='invalid-ref'></textarea>
+ </body>
+</html>
diff --git a/layout/reftests/css-ui-invalid/default-style/textarea.html b/layout/reftests/css-ui-invalid/default-style/textarea.html
new file mode 100644
index 000000000..73ff14c2a
--- /dev/null
+++ b/layout/reftests/css-ui-invalid/default-style/textarea.html
@@ -0,0 +1,13 @@
+<!DOCTYPE>
+<html class="reftest-wait">
+ <script>
+ function onloadHandler()
+ {
+ document.getElementById('e').setCustomValidity('foo');
+ document.documentElement.className='';
+ }
+ </script>
+ <body onload="onloadHandler();">
+ <textarea id='e'></textarea>
+ </body>
+</html>