Files
sousa-gecko/testing/web-platform/tests/css/css-text/text-fit/text-emphasis.html
T
Kent Tamura aff3c96143 Bug 2045702 [wpt PR 60463] - css-text-5: Update specification URL in text-fit tests, a=testonly
Automatic update from web-platform-tests
css-text-5: Update specification URL in text-fit tests

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

--

wpt-commits: eca981421a06cb6898eb31878579df4c4c16547a
wpt-pr: 60463
2026-06-09 18:48:25 +00:00

52 lines
1020 B
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="text-emphasis-ref.html">
<meta name="flags" content="ahem">
<link rel="stylesheet" href="/fonts/ahem.css">
<style>
.common {
font: 20px/1 Ahem;
width: 160px;
white-space: pre;
border: 1px solid gray;
margin: 20px;
text-emphasis: 'e' blue;
}
.grow-consistent {
text-fit: grow consistent;
}
.grow-line {
text-fit: grow per-line-all;
}
.shrink-consistent {
text-fit: shrink consistent;
width: 80px;
}
.shrink-line {
text-fit: shrink per-line-all;
width: 80px;
}
</style>
<div class="common grow-consistent">ÉpÉ
pÉpÉ</div>
<div class="common grow-line">ÉpÉp
pÉpÉpÉpÉ</div>
<div class="common shrink-consistent">ÉpÉ
pÉpÉpÉpÉ</div>
<div class="common shrink-line">ÉpÉp
pÉpÉpÉpÉ</div>
<script>
document.fonts.ready.then(() => {
document.documentElement.classList.remove('reftest-wait');
});
</script>