Bug 609017 - Default style for :-moz-ui-invalid. r=bz ui-r=limi a=sicking
authorMounir Lamouri <mounir.lamouri@gmail.com>
Wed, 24 Nov 2010 00:51:43 +0100
changeset 58148 a3fabf61118eb10deff968dd22cc9aa7a8399e4a
parent 58147 253651b1e9c2f5baf3e2bb423994f51ec502a2e6
child 58149 50dda7cdd3e88588ad9b33fc367c6da6ec7ce5dc
push id17175
push usermlamouri@mozilla.com
push dateWed, 24 Nov 2010 10:15:50 +0000
treeherdermozilla-central@7f5cd850578e [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersbz, limi, sicking
bugs609017
milestone2.0b8pre
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 609017 - Default style for :-moz-ui-invalid. r=bz ui-r=limi a=sicking
layout/reftests/css-invalid/default-style/button.html
layout/reftests/css-invalid/default-style/fieldset.html
layout/reftests/css-invalid/default-style/input.html
layout/reftests/css-invalid/default-style/select.html
layout/reftests/css-invalid/default-style/style.css
layout/reftests/css-invalid/default-style/textarea.html
layout/reftests/css-submit-invalid/button-submit/dynamic-invalid.html
layout/reftests/css-submit-invalid/input-image/dynamic-invalid.html
layout/reftests/css-submit-invalid/input-submit/dynamic-invalid.html
layout/reftests/css-ui-invalid/default-style/style.css
layout/style/forms.css
--- a/layout/reftests/css-invalid/default-style/button.html
+++ b/layout/reftests/css-invalid/default-style/button.html
@@ -1,10 +1,11 @@
 <!DOCTYPE>
 <html class="reftest-wait">
+  <link rel='stylesheet' type='text/css' href='style.css'>
   <script>
     function onloadHandler()
     {
       document.getElementById('e').setCustomValidity('foo');
       document.documentElement.className='';
     }
   </script>
   <body onload="onloadHandler();">
--- a/layout/reftests/css-invalid/default-style/fieldset.html
+++ b/layout/reftests/css-invalid/default-style/fieldset.html
@@ -1,10 +1,11 @@
 <!DOCTYPE>
 <html class="reftest-wait">
+  <link rel='stylesheet' type='text/css' href='style.css'>
   <script>
     function onloadHandler()
     {
       document.getElementById('e').setCustomValidity('foo');
       document.documentElement.className='';
     }
   </script>
   <body onload="onloadHandler();">
--- a/layout/reftests/css-invalid/default-style/input.html
+++ b/layout/reftests/css-invalid/default-style/input.html
@@ -1,10 +1,11 @@
 <!DOCTYPE>
 <html class="reftest-wait">
+  <link rel='stylesheet' type='text/css' href='style.css'>
   <script>
     function onloadHandler()
     {
       document.getElementById('e').setCustomValidity('foo');
       document.documentElement.className='';
     }
   </script>
   <body onload="onloadHandler();">
--- a/layout/reftests/css-invalid/default-style/select.html
+++ b/layout/reftests/css-invalid/default-style/select.html
@@ -1,10 +1,11 @@
 <!DOCTYPE>
 <html class="reftest-wait">
+  <link rel='stylesheet' type='text/css' href='style.css'>
   <script>
     function onloadHandler()
     {
       document.getElementById('e').setCustomValidity('foo');
       document.documentElement.className='';
     }
   </script>
   <body onload="onloadHandler();">
--- a/layout/reftests/css-invalid/default-style/style.css
+++ b/layout/reftests/css-invalid/default-style/style.css
@@ -1,5 +1,9 @@
+:-moz-ui-invalid {
+  box-shadow: none;
+}
+
 .invalid-ref {
 }
 
 .barred-ref {
 }
--- a/layout/reftests/css-invalid/default-style/textarea.html
+++ b/layout/reftests/css-invalid/default-style/textarea.html
@@ -1,10 +1,11 @@
 <!DOCTYPE>
 <html class="reftest-wait">
+  <link rel='stylesheet' type='text/css' href='style.css'>
   <script>
     function onloadHandler()
     {
       document.getElementById('e').setCustomValidity('foo');
       document.documentElement.className='';
     }
   </script>
   <body onload="onloadHandler();">
--- a/layout/reftests/css-submit-invalid/button-submit/dynamic-invalid.html
+++ b/layout/reftests/css-submit-invalid/button-submit/dynamic-invalid.html
@@ -1,13 +1,14 @@
 <!DOCTYPE html>
 <html class='reftest-wait'>
   <head>
     <style>
       :-moz-submit-invalid { display: none; }
+      :-moz-ui-invalid { box-shadow: none; }
     </style>
   </head>
   <script>
     function onloadHandler()
     {
       document.getElementById('i').value = '';
       document.documentElement.className = '';
     }
--- a/layout/reftests/css-submit-invalid/input-image/dynamic-invalid.html
+++ b/layout/reftests/css-submit-invalid/input-image/dynamic-invalid.html
@@ -1,13 +1,14 @@
 <!DOCTYPE html>
 <html class='reftest-wait'>
   <head>
     <style>
       :-moz-submit-invalid { display: none; }
+      :-moz-ui-invalid { box-shadow: none; }
     </style>
   </head>
   <script>
     function onloadHandler()
     {
       document.getElementById('i').value = '';
       document.documentElement.className = '';
     }
--- a/layout/reftests/css-submit-invalid/input-submit/dynamic-invalid.html
+++ b/layout/reftests/css-submit-invalid/input-submit/dynamic-invalid.html
@@ -1,13 +1,14 @@
 <!DOCTYPE html>
 <html class='reftest-wait'>
   <head>
     <style>
       :-moz-submit-invalid { display: none; }
+      :-moz-ui-invalid { box-shadow: none; }
     </style>
   </head>
   <script>
     function onloadHandler()
     {
       document.getElementById('i').value = '';
       document.documentElement.className = '';
     }
--- a/layout/reftests/css-ui-invalid/default-style/style.css
+++ b/layout/reftests/css-ui-invalid/default-style/style.css
@@ -1,5 +1,6 @@
 .invalid-ref {
+  box-shadow: 0 0 1.5px 1px red;
 }
 
 .barred-ref {
 }
--- a/layout/style/forms.css
+++ b/layout/style/forms.css
@@ -620,20 +620,19 @@ optgroup:before {
 input[type="file"] > input[type="text"] {
   direction: ltr !important;
   text-align: inherit;
 }
 
 /**
  * Set default style for invalid elements.
  */
-/* TODO: uncomment this with bug 609017.
 :not(output):-moz-ui-invalid {
   box-shadow: 0 0 1.5px 1px red;
-}*/
+}
 
 output:invalid {
   color: red;
 }
 
 @media print {
   input, textarea, select, button {
     -moz-user-input: none !important;