<html> | |
<head> | |
<style> | |
:root { --one: 10px; --another: 20px; } | |
</style> | |
<body> | |
<script> | |
document.write(getComputedStyle(document.body).getPropertyValue("--one") + " " + getComputedStyle(document.body).getPropertyValue("--another")) | |
</script> | |
</body> | |
</html. |