mirror of
https://github.com/Polymer/polymer.git
synced 2026-08-19 01:14:44 -05:00
Fix styling tests with Firefox
Disable checking the style in IE and Edge due to a missing `:any` selector
This commit is contained in:
+11
-2
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user