Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save sefeng211/cd971f429e27f978d443ab23f3ec2e0e to your computer and use it in GitHub Desktop.
Save sefeng211/cd971f429e27f978d443ab23f3ec2e0e to your computer and use it in GitHub Desktop.
testcase-inline-edge.html
<html>
<style>
div {
inset-inline-start: 400px;
width: 300px;
height: 400px;
background-color:yellow;
position: absolute;
}
</style>
<body>
<div></div>
</body>
<script>
const div = document.querySelector("div");
console.log(window.getComputedStyle(div)["inset-inline-start"]);
console.log(window.getComputedStyle(div)["left"]);
</script>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment