Fix styling tests with Firefox

Disable checking the style in IE and Edge due to a missing `:any`
selector
This commit is contained in:
Daniel Freedman
2017-12-12 12:17:32 -08:00
parent 9f3ff4e24b
commit f6f0750b85
+11 -2
View File
@@ -143,9 +143,15 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
: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>
@@ -284,8 +290,11 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
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>