Bug 1187605 pt 2 - Make the <select> dropdown arrow respect the 'orientation' attribute, if present. r=smontagu

This commit is contained in:
Jonathan Kew 2015-08-03 18:45:24 +01:00
parent 5068a1ca21
commit 98ffae0b88
6 changed files with 22 additions and 2 deletions

BIN
layout/style/arrow-left.gif Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 57 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 57 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 60 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 59 B

View File

@ -274,6 +274,22 @@ 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;
}

View File

@ -14,7 +14,11 @@ toolkit.jar:
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/