Source code
Revision control
Copy as Markdown
Other Tools
Test Info:
- This WPT test may be referenced by the following Test IDs:
- /css/css-text/text-fit/columns-consistent.html - WPT Dashboard Interop Dashboard
<!DOCTYPE html>
<html class="reftest-wait">
<link rel="match" href="columns-consistent-ref.html">
<meta name="flags" content="ahem">
<link rel="stylesheet" href="/fonts/ahem.css">
<style>
.container {
width: 102px;
columns: 2;
column-gap: 2px;
height: 24px;
background: #ddd;
font: 20px/1 Ahem;
border: 2px solid blue;
}
.shrink {
text-fit: shrink consistent;
}
.grow {
text-fit: grow consistent;
font-size: 5px;
}
</style>
<body>
<div class="container">
<div class="shrink">AAAAA BpB</div>
</div>
<div class="container">
<div class="grow">AA<br>p</div>
</div>
<div class="container" style="text-fit:grow consistent">
AA<br>p
</div>
<script>
document.fonts.ready.then(() => {
document.documentElement.classList.remove('reftest-wait');
});
</script>
</body>
</html>