Bug 947718 - Work around bug 946184 for Aurora. r=bz
authorJonathan Watt <jwatt@jwatt.org>
Sun, 08 Dec 2013 21:27:28 +0000
changeset 175108 6f6294b469f05364bce8d5f6de5bf27d8c406fad
parent 175107 2510e5afb29483a229c387b90fa092420e3d5fb8
child 175109 3bfbc5e93d428d1550e9894ff096778ae8f868e4
push id445
push userffxbld
push dateMon, 10 Mar 2014 22:05:19 +0000
treeherdermozilla-release@dc38b741b04e [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersbz
bugs947718, 946184
milestone28.0a1
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 947718 - Work around bug 946184 for Aurora. r=bz
b2g/chrome/content/content.css
layout/style/forms.css
mobile/android/themes/core/content.css
--- a/b2g/chrome/content/content.css
+++ b/b2g/chrome/content/content.css
@@ -279,16 +279,17 @@ button:active,
 input:active,
 option:active,
 select:active,
 label:active,
 textarea:active {
   background-color: rgba(141, 184, 216, 0.5);
 }
 
+input[type=number] > div > div, /* work around bug 946184 */
 input[type=number]::-moz-number-spin-box {
   display: none;
 }
 
 %ifdef MOZ_WIDGET_GONK
 /* This binding only provide key shortcuts that we can't use on devices */
 input,
 textarea {
--- a/layout/style/forms.css
+++ b/layout/style/forms.css
@@ -887,24 +887,26 @@ input[type=range]::-moz-range-thumb {
 }
 
 input[type="number"] {
   /* Has to revert some properties applied by the generic input rule. */
   -moz-binding: none;
   width: 149px; /* to match type=text */
 }
 
+input[type=number] > div, /* work around bug 946184 */
 input[type=number]::-moz-number-wrapper {
   /* Prevent styling that would change the type of frame we construct. */
   display: flex;
   float: none !important;
   position: static !important;
   height: 100%;
 }
 
+input[type=number] > div > input, /* work around bug 946184 */
 input[type=number]::-moz-number-text {
   -moz-appearance: none;
   /* work around autofocus bug 939248 on initial load */
   -moz-user-modify: read-write;
   /* This pseudo-element is also an 'input' element (nested inside and
    * distinct from the <input type=number> element) so we need to prevent the
    * explicit setting of 'text-align' by the general CSS rule for 'input'
    * above. We want to inherit its value from its <input type=number>
@@ -912,45 +914,48 @@ input[type=number]::-moz-number-text {
    */
   text-align: inherit;
   flex: 1;
   padding: 0;
   border: 0;
   margin: 0;
 }
 
+input[type=number] > div > div, /* work around bug 946184 */
 input[type=number]::-moz-number-spin-box {
   display: flex;
   flex-direction: column;
 %ifdef XP_WIN
   /* The Window's Theme's spin buttons have a very narrow minimum width, so
    * make it something reasonable:
    */
   width: 16px;
 %endif
   height: 0;
   align-self: center;
   justify-content: center;
 }
 
+input[type=number] > div > div > div:first-child, /* work around bug 946184 */
 input[type=number]::-moz-number-spin-up {
   -moz-appearance: spinner-upbutton;
   display: block; /* bug 926670 */
   flex: none;
   cursor: default;
   /* Style for when native theming is off: */
   background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="6" height="5"><path d="M1,4 L3,0 5,4" fill="dimgrey"/></svg>');
   background-repeat: no-repeat;
   background-position: center bottom;
   border: 1px solid darkgray;
   border-bottom: none;
   border-top-left-radius: 4px;
   border-top-right-radius: 4px;
 }
 
+input[type=number] > div > div > div:not(:first-child), /* work around bug 946184 */
 input[type=number]::-moz-number-spin-down {
   -moz-appearance: spinner-downbutton;
   display: block; /* bug 926670 */
   flex: none;
   cursor: default;
   /* Style for when native theming is off: */
   background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="6" height="5"><path d="M1,1 L3,5 5,1" fill="dimgrey"/></svg>');
   background-repeat: no-repeat;
--- a/mobile/android/themes/core/content.css
+++ b/mobile/android/themes/core/content.css
@@ -304,12 +304,13 @@ input:not(:focus):not([disabled]):active
 select:not([disabled]):active,
 textarea:not(:focus):not([disabled]):active,
 option:active,
 label:active,
 xul|menulist:active {
   background-color: @color_background_highlight_overlay@;
 }
 
+input[type=number] > div > div, /* work around bug 946184 */
 input[type=number]::-moz-number-spin-box {
   display: none;
 }