Source code
Revision control
Copy as Markdown
Other Tools
Test Info: Warnings
- This test has a WPT meta file that expects 1 subtest issues.
- This WPT test may be referenced by the following Test IDs:
- /css/css-mixins/cycle.tentative.html - WPT Dashboard Interop Dashboard
<!DOCTYPE html>
<html>
<head>
<title>CSS Mixins: Cycles</title>
<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>
<style>
@mixin --a() {
--last-processed: a;
@apply --b;
}
@mixin --b() {
--last-processed: b;
@apply --c;
}
@mixin --c() {
--last-processed: c;
@apply --b;
}
#target {
@apply --a;
}
</style>
</head>
<body>
<div id="target"></div>
<script>
test(() => {
let target = document.getElementById('target');
assert_equals(getComputedStyle(target).getPropertyValue('--last-processed'), 'c');
});
</script>
</body>
</html>