seralization-round-tripping.tentative.html (634B)
1 <!DOCTYPE html> 2 <html> 3 <head> 4 <link rel="help" href="https://drafts.csswg.org/css-env-1/"> 5 <title>Test style seralization round tripping with CSS env vars</title> 6 <script src="/resources/testharness.js"></script> 7 <script src="/resources/testharnessreport.js"></script> 8 </head> 9 <body> 10 <script> 11 test(() => { 12 document.body.style.top = "env(test)"; 13 assert_equals(document.body.style.getPropertyValue("top"), "env(test)"); 14 document.body.style.setProperty("top", "env()"); 15 assert_equals(document.body.style.getPropertyValue("top"), "env(test)"); 16 }); 17 </script> 18 </body> 19 </html>