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
50 lines
1.1 KiB
HTML
50 lines
1.1 KiB
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>
|