.#{$primaryStyleName} span.#{$primaryStyleName}-menuitem-disabled:active {
opacity: .5;
filter: alpha(opacity=50);
+
+ .v-ie8 & {
+ filter: none;
+ color: #999;
+ img {
+ filter: alpha(opacity=50);
+ }
+ }
}
+
.#{$primaryStyleName}-more-menuitem {
/* Arial has the most coverage for geometric entity characters */
font-family: arial, helvetica, sans-serif;
WebElement element = driver.findElement(By
.className("v-menubar-menuitem-disabled"));
- assertThat(element.getCssValue("opacity"), is("0.5"));
-
- if (browserIsIE8or9()) {
+ if (Browser.IE9.getDesiredCapabilities().equals(
+ getDesiredCapabilities())) {
assertThat(element.getCssValue("filter"), is("alpha(opacity=50)"));
+ } else if (Browser.IE8.getDesiredCapabilities().equals(
+ getDesiredCapabilities())) {
+ WebElement icon = element.findElement(By.tagName("img"));
+ assertThat(icon.getCssValue("filter"), is("alpha(opacity=50)"));
+ } else {
+ assertThat(element.getCssValue("opacity"), is("0.5"));
}
compareScreen("transparent");
}
-
- private boolean browserIsIE8or9() {
- return Browser.IE8.getDesiredCapabilities().equals(
- getDesiredCapabilities())
- || Browser.IE9.getDesiredCapabilities().equals(
- getDesiredCapabilities());
- }
}
\ No newline at end of file