Skip to content

Instantly share code, notes, and snippets.

@jdanyow
Created September 4, 2020 18:04
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jdanyow/6a9d9e52499b40b30bb02a4bea755ba3 to your computer and use it in GitHub Desktop.
Save jdanyow/6a9d9e52499b40b30bb02a4bea755ba3 to your computer and use it in GitHub Desktop.
<!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