blob: 8a9f2553a019ba25e07ae69a1207bc528efa44cd [file] [edit]
<!DOCTYPE html>
<title>The revert-rule keyword: interaction with env()</title>
<link rel="help" href="https://drafts.csswg.org/css-cascade-5/#revert-rule-keyword">
<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>
<style>
#test1 {
color: green;
}
#test1 {
color: red;
color: env(unknown-env, revert-rule);
}
</style>
<div id=test1></div>
<script>
test(() => {
assert_true(CSS.supports('color:revert-rule'));
assert_equals(getComputedStyle(test1).color, 'rgb(0, 128, 0)')
}, 'The revert-rule works in an env() fallback');
</script>