Status: FAIL | Duration: 10ms | Subtests: 0/1 | Open test on wpt.live | Open ref on wpt.live | wpt.fyi
/css/css-text/text-fit/shrink-per-line-all.html
<!DOCTYPE html> <link rel="help" href="https://drafts.csswg.org/css-text-5/#text-fit-property"> <link rel="match" href="shrink-per-line-all-ref.html"> <meta name="flags" content="ahem"> <link rel="stylesheet" href="/fonts/ahem.css"> <style> .target { text-fit: shrink per-line-all; white-space: pre; width: 100px; font: 20px/normal Ahem; border: 1px solid green; } </style> <body> <div class="target" style="">ABCDEABCDE</div> <div class="target" style="text-fit: shrink per-line-all 75%">ABCDEABCDE</div> </body>
/css/css-text/text-fit/shrink-per-line-all-ref.html
<!DOCTYPE html> <link rel="stylesheet" href="/fonts/ahem.css"> <style> .target { white-space: pre; width: 100px; font: 20px/normal Ahem; border: 1px solid green; } </style> <body> <div class="target" style="font-size:10px">ABCDEABCDE</div> <div class="target" style="font-size:15px">ABCDEABCDE</div> </body>