Skip to content

Commit

Permalink
Fix styling tests with Firefox
Browse files Browse the repository at this point in the history
Disable checking the style in IE and Edge due to a missing `:any`
selector
  • Loading branch information
dfreedm committed Dec 12, 2017
1 parent 9f3ff4e commit f6f0750
Showing 1 changed file with 11 additions and 2 deletions.
13 changes: 11 additions & 2 deletions test/unit/dir.html
Original file line number Diff line number Diff line change
Expand Up @@ -143,9 +143,15 @@
:host-context([dir="rtl"]) :-webkit-any(.foo1, .bar1) {
border: 20px solid black;
}
:host-context([dir="rtl"]) :-moz-any(.foo1, .bar1) {
border: 20px solid black;
}
:dir(rtl) :-webkit-any(.foo2, .bar2) {
border: 20px solid black;
}
:dir(rtl) :-moz-any(.foo2, .bar2) {
border: 20px solid black;
}
</style>
<div id="normal">hello</div>
<div id="target">am i red?</div>
Expand Down Expand Up @@ -284,8 +290,11 @@
assertComputed(Polymer.dom(el).firstElementChild, '10px');
assertComputed(el.$.other, '5px');
assertComputed(el.$.nested, '4px');
assertComputed(el.$.anyfoo, '20px');
assertComputed(el.$.anybar, '20px');
// Edge and IE don't have a `:any()` selector
if (!navigator.userAgent.match(/(?:Edge|Trident)/)) {
assertComputed(el.$.anyfoo, '20px');
assertComputed(el.$.anybar, '20px');
}
})
});
</script>
Expand Down

0 comments on commit f6f0750

Please sign in to comment.