Status: FAIL | Duration: 12ms | Subtests: 0/1 | Open test on wpt.live | Open ref on wpt.live | wpt.fyi
/css/css-text/text-fit/consistent-blank-line.html
<!DOCTYPE html> <html class="reftest-wait"> <meta charset="utf-8"> <link rel="help" href="https://drafts.csswg.org/css-text-5/#text-fit-property"> <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>
/css/css-text/text-fit/consistent-blank-line-ref.html
<!DOCTYPE html> <html class="reftest-wait"> <meta charset="utf-8"> <meta name="flags" content="ahem"> <link rel="stylesheet" href="/fonts/ahem.css"> <style> .grow-consistent { font: 40px/2 Ahem; width: 160px; white-space: pre; border: 1px solid gray; margin-bottom: 8px; } .shrink-consistent { font: 10px/2 Ahem; width: 80px; white-space: pre; border: 1px solid gray; margin-bottom: 8px; } .grow-consistent-wrap { font: 40px/1 Ahem; width: 160px; 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>