Bug 1187605 pt 2 - Make the <select> dropdown arrow respect the 'orientation' attribute, if present. r=smontagu
authorJonathan Kew <jkew@mozilla.com>
Mon, 03 Aug 2015 18:45:24 +0100
changeset 287614 8ad982618f06bad91d4c712b55803359d746863c
parent 287613 3a38462c5703ebb5a2586cb0ad6a8318355265b3
child 287615 2f16fb18314a58cbf5e242b000d7ae560401ab97
push id5067
push userraliiev@mozilla.com
push dateMon, 21 Sep 2015 14:04:52 +0000
treeherdermozilla-beta@14221ffe5b2f [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewerssmontagu
bugs1187605
milestone42.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 1187605 pt 2 - Make the <select> dropdown arrow respect the 'orientation' attribute, if present. r=smontagu
layout/style/arrow-left.gif
layout/style/arrow-right.gif
layout/style/arrowd-left.gif
layout/style/arrowd-right.gif
layout/style/forms.css
layout/style/jar.mn
new file mode 100644
index e69de29bb2d1d6434b8b29ae775ad8c2e48c5391..a8c20044737628a28ac680eec92bc19c447f2b6b
GIT binary patch
literal 57
zc${<hbhEHbWMN=u_{hWn1T$yO{0|0-KUo+V7?>DzK%yXd1}3g4#R`lE_9mFDW?--e
E0PGwO?*IS*
new file mode 100644
index e69de29bb2d1d6434b8b29ae775ad8c2e48c5391..044fe8152bb6bcfff694e967e1cf507d33681747
GIT binary patch
literal 57
zc${<hbhEHbWMN=u_{hWn1T$yO{0|0-KUo+V7?>DzK%yXd1}3f^KD7y_KTZo;#K2$;
E0PrFZp#T5?
new file mode 100644
index e69de29bb2d1d6434b8b29ae775ad8c2e48c5391..227def79b8bf837e7e0ccbb2eadf46da1e0348d0
GIT binary patch
literal 60
zc${<hbhEHbWMklD_{hWn1T$yO{Qv(ykfHdKg^_`Qi9rV>3X*4F;+@i;*~s{OUPn<=
JR<H(xH2}QK4-EhS
new file mode 100644
index e69de29bb2d1d6434b8b29ae775ad8c2e48c5391..999cf3983ba8d1479876610501aa8bce4b19e0db
GIT binary patch
literal 59
zc${<hbhEHbWMklD_{hWn1T$yO{Qv(ykfHdKg^_`Qi9rV>3X*4F;+fJf!C8GluH>_2
IF*k!X0HpN|;{X5v
--- a/layout/style/forms.css
+++ b/layout/style/forms.css
@@ -269,16 +269,32 @@ select > button {
   */
   vertical-align: top !important;
 }
 
 select > button:active {
   background-image: url("arrowd.gif") !important;
 }
 
+select > button[orientation="left"] {
+  background-image: url("arrow-left.gif") !important;
+}
+
+select > button[orientation="right"] {
+  background-image: url("arrow-right.gif") !important;
+}
+
+select > button[orientation="left"]:active {
+  background-image: url("arrowd-left.gif") !important;
+}
+
+select > button[orientation="right"]:active {
+  background-image: url("arrowd-right.gif") !important;
+}
+
 select:empty {
   inline-size: 2.5em;
 }
 
 *|*::-moz-display-comboboxcontrol-frame {
   overflow: -moz-hidden-unscrollable;
   /* This block-start/end padding plus the combobox block-start/end border need to
      add up to the block-start/end borderpadding of text inputs and buttons */
--- a/layout/style/jar.mn
+++ b/layout/style/jar.mn
@@ -9,12 +9,16 @@ toolkit.jar:
    res/full-screen-override.css    (full-screen-override.css)
    res/plaintext.css     (plaintext.css)
    res/viewsource.css    (viewsource.css)
    res/counterstyles.css (counterstyles.css)
    res/noscript.css (noscript.css)
    res/noframes.css (noframes.css)
 *  res/forms.css    (forms.css)
    res/number-control.css    (number-control.css)
-   res/arrow.gif    (arrow.gif)
-   res/arrowd.gif   (arrowd.gif)
+   res/arrow.gif        (arrow.gif)
+   res/arrow-left.gif   (arrow-left.gif)
+   res/arrow-right.gif  (arrow-right.gif)
+   res/arrowd.gif       (arrowd.gif)
+   res/arrowd-left.gif  (arrowd-left.gif)
+   res/arrowd-right.gif (arrowd-right.gif)
 
 % resource gre-resources %res/