Skip to content

Commit

Permalink
test for mixins in custom-style ordering
Browse files Browse the repository at this point in the history
  • Loading branch information
dfreedm committed Aug 11, 2016
1 parent 9daea3d commit 37646f7
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions test/unit/custom-style.html
Original file line number Diff line number Diff line change
Expand Up @@ -307,6 +307,18 @@
})
</script>

<style is="custom-style">
.order {
@apply --order-mixin;
}
:root {
--order-mixin: {
border: 2px solid black;
};
}
</style>
<div class="order"></div>

<script>

suite('custom-style', function() {
Expand Down Expand Up @@ -514,6 +526,12 @@
assertComputed(document.querySelector('.foo--bar'), '20px');
});

test('mixin definition and usage is ordering independant in a custom-style',
function() {
var el = document.querySelector('div.order');
assertComputed(el, '2px');
}
);
});


Expand Down

0 comments on commit 37646f7

Please sign in to comment.