<link rel=match href=green.html>
<style>
:root {background-color:red}
</style>
<script>
if (window.location.protocol === "https:") {
   document.documentElement.style.backgroundColor = "green";
}
</script>