Files
sousa-gecko/testing/web-platform/tests/css/css-text/text-fit/grow-dynamic-ref.html
T
Kent Tamura 4e0ce273e1 Bug 2036688 [wpt PR 59592] - css-text: Add tests about dynamic changes of text-fit values, a=testonly
Automatic update from web-platform-tests
css-text: Add tests about dynamic changes of `text-fit` values

Bug: crbug.com/417306102
Change-Id: I129563131e3604c000d2eb468e27b453b2f239dd
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/7806866
Commit-Queue: Koji Ishii <kojii@chromium.org>
Reviewed-by: Koji Ishii <kojii@chromium.org>
Auto-Submit: Kent Tamura <tkent@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1623750}

--

wpt-commits: 8690d9abd0316a40a3c34cc68e68518cb653887a
wpt-pr: 59592
2026-05-08 08:39:17 +00:00

42 lines
696 B
HTML

<!DOCTYPE html>
<html class="reftest-wait">
<meta name="flags" content="ahem">
<link rel="stylesheet" href="/fonts/ahem.css">
<style>
.target {
white-space: pre;
width: 120px;
margin-bottom: 10px;
font: 10px/normal Ahem;
border: 2px solid blue;
text-fit: none;
}
.scale-c {
text-fit: grow consistent;
}
.scale-pl {
text-fit: grow per-line;
}
.scale-pla {
text-fit: grow per-line-all;
}
</style>
<body>
<div class="target scale-c">ABCDEF
GHI</div>
<div class="target scale-pl">ABCDEF
GHI</div>
<div class="target scale-pla">ABCDEF
GHI</div>
<script>
document.fonts.ready.then(() => {
document.documentElement.classList.remove('reftest-wait');
});
</script>
</body>
</html>