blob: 0c8d9be7fcf5dabbe0ae3bcc22d0970c82231a52 [file] [log] [blame]
<!DOCTYPE html>
<html>
<head>
<title>CSS Mixins: Mixin from another stylesheet</title>
<link rel="help" href="https://drafts.csswg.org/css-mixins-1/#using-mixins">
<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>
<style>
div {
color: red;
@apply --m1;
}
</style>
<style>
@mixin --m1() {
color: green;
}
</style>
</head>
<body>
<div><div class="cls" id="target">This text should be green.</div></div>
<script>
test(() => {
let target = document.getElementById('target');
assert_equals(getComputedStyle(target).color, 'rgb(0, 128, 0)');
});
</script>
</body>
</html>