Created
September 4, 2020 18:04
-
-
Save jdanyow/6a9d9e52499b40b30bb02a4bea755ba3 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!doctype html> | |
<html lang="en"> | |
<head> | |
<meta charset="utf-8"> | |
<title>GistRun</title> | |
<link rel="stylesheet" href="https://static.docs.com/ui/latest/site/en-us/styles/site-ltr.css"> | |
<style> | |
.example { | |
display: inline-block !important; | |
border: 1px solid blue; | |
} | |
.has-tabular-nums { | |
font-variant-numeric: tabular-nums; | |
} | |
</style> | |
</head> | |
<body class="content is-block"> | |
<h1>Demo</h1> | |
<h2>Standard</h2> | |
<h3 class="example" id="standardEl"></h3> | |
<h3>Tabular nums</h3> | |
<h3 class="example has-tabular-nums" id="tabularEl"></h3> | |
<script> | |
setInterval(() => { | |
standardEl.textContent = Date.now(); | |
tabularEl.textContent = Date.now(); | |
}, 100) | |
</script> | |
</body> | |
</html> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment