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/consistent-blank-line.html - WPT Dashboard Interop Dashboard
<!DOCTYPE html>
<html class="reftest-wait">
<meta charset="utf-8">
<link rel="match" href="consistent-blank-line-ref.html">
<meta name="flags" content="ahem">
<link rel="stylesheet" href="/fonts/ahem.css">
<style>
.grow-consistent {
font: 20px/2 Ahem;
width: 160px;
text-fit: grow consistent;
white-space: pre;
border: 1px solid gray;
margin-bottom: 8px;
}
.shrink-consistent {
font: 20px/2 Ahem;
width: 80px;
text-fit: shrink consistent;
white-space: pre;
border: 1px solid gray;
margin-bottom: 8px;
}
.grow-consistent-wrap {
font: 20px/1 Ahem;
width: 160px;
text-fit: grow consistent;
white-space: normal;
border: 1px solid gray;
margin-bottom: 8px;
}
</style>
<div class="grow-consistent-wrap"><span style="display: inline-block; width: 160px; height: 10px; background: blue;"></span>xxxx</div>
<div class="grow-consistent">xxxx
xx</div>
<div class="shrink-consistent">xxxxxxxx
xxxx</div>
<script>
document.fonts.ready.then(() => {
document.documentElement.classList.remove('reftest-wait');
});
</script>