Skip to content

Commit

Permalink
Skip initial and inherit on IE 10 and 11
Browse files Browse the repository at this point in the history
Those browser do not support `initial` or `inherit` values
  • Loading branch information
dfreedm committed Jul 28, 2016
1 parent c7571e5 commit 63c3bfb
Showing 1 changed file with 10 additions and 4 deletions.
14 changes: 10 additions & 4 deletions test/unit/styling-cross-scope-apply.html
Original file line number Diff line number Diff line change
Expand Up @@ -614,12 +614,12 @@
<template>
<style>
:host {
color: rgb(0, 255, 0);
border: 2px solid blue;
--initial-inherit: {
color: initial;
border: initial;
};
color: rgb(0, 255, 0);
border: 2px solid blue;
}
</style>
<x-apply id="child"></x-apply>
Expand All @@ -637,12 +637,12 @@
<template>
<style>
:host {
color: rgb(0, 255, 0);
border: 2px solid blue;
--initial-inherit: {
color: inherit;
border: inherit;
};
color: rgb(0, 255, 0);
border: 2px solid blue;
}
</style>
<x-apply id="child"></x-apply>
Expand Down Expand Up @@ -878,6 +878,9 @@
});

test('Mixins can set "inherit" for a property', function() {
if (navigator.userAgent.match(/Trident/)) {
this.skip();
}
var e = document.createElement('x-inherit');
document.body.appendChild(e);
CustomElements.takeRecords();
Expand All @@ -893,6 +896,9 @@
});

test('Mixins can set "initial" for a property', function() {
if (navigator.userAgent.match(/Trident/)) {
this.skip();
}
var e = document.createElement('x-initial');
document.body.appendChild(e);
CustomElements.takeRecords();
Expand Down

0 comments on commit 63c3bfb

Please sign in to comment.