env-revert-rule.tentative.html (609B)
1 <!DOCTYPE html> 2 <title>The revert-rule keyword: interaction with env()</title> 3 <link rel="help" href="https://github.com/w3c/csswg-drafts/issues/10443"> 4 <script src="/resources/testharness.js"></script> 5 <script src="/resources/testharnessreport.js"></script> 6 7 <style> 8 #test1 { 9 color: green; 10 } 11 #test1 { 12 color: red; 13 color: env(unknown-env, revert-rule); 14 } 15 </style> 16 <div id=test1></div> 17 <script> 18 test(() => { 19 assert_true(CSS.supports('color:revert-rule')); 20 assert_equals(getComputedStyle(test1).color, 'rgb(0, 128, 0)') 21 }, 'The revert-rule works in an env() fallback'); 22 </script>