Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
sammygill authored Feb 5, 2025
1 parent 79b8d99 commit 1cea176
Showing 1 changed file with 25 additions and 0 deletions.
25 changes: 25 additions & 0 deletions css/css-fonts/font-variant-caps-invalidation-container-sizing.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
<!DOCTYPE html>
<html>
<head>
<link rel="author" title="Sammy Gill" href="mailto:[email protected]">
<link rel="help" href="https://drafts.csswg.org/css-fonts/#font-variant-caps-prop"
<link rel="match" href="font-variant-caps-invalidation-container-sizing-ref.html">
<meta name="assert" content="Block container is sized properly when font-variant-caps is changed from normal to all-small-caps">
<style>
#container {
width: min-content;
border: 1px solid black;
font-size: 100px;
}
</style>
</head>
<body>
<div>
X
</div>
</body>
<script>
document.body.offsetHeight;
document.getElementById("container").style["font-variant-caps"] = "all-small-caps";
</script>
</html>

0 comments on commit 1cea176

Please sign in to comment.