Files
sousa-gecko/testing/web-platform/tests/css/css-text/text-fit/background-image-ref.html
T
Kent Tamura a2ae435b6a Bug 2040076 [wpt PR 59905] - text-fit: Add a test with background-image, a=testonly
Automatic update from web-platform-tests
text-fit: Add a test with background-image

* linear-gradient should be scaled
* static image should not be scaled, but repeated

Bug: 417306102
Change-Id: I15fd6562d765bcd63d48de19ae17781dc014d2d3
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/7848085
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@{#1630568}

--

wpt-commits: 216f162dddf07efb7a3ad6019108ebb3137c2ebe
wpt-pr: 59905
2026-05-19 08:26:17 +00:00

45 lines
1.1 KiB
HTML

<!DOCTYPE html>
<html class="reftest-wait">
<meta charset="utf-8">
<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;
}
.grow-line {
font: 20px/2 Ahem;
width: 160px;
white-space: pre;
border: 1px solid gray;
margin-bottom: 8px;
}
.gradient {
background-image: linear-gradient(to bottom, lime, green);
}
.image {
background-image: url(/images/background.png);
}
</style>
<!-- linear-gradient -->
<div class="grow-consistent"><span class="gradient">ÉpÉ
pÉpÉ</span></div>
<div class="grow-line"><span class="gradient" style="font-size:40px">ÉpÉp</span>
<span class="gradient">pÉpÉpÉpÉ</span></div>
<!-- image repeat -->
<div class="grow-consistent"><span class="image">ÉpÉ
pÉpÉ</span></div>
<div class="grow-line"><span class="image" style="font-size:40px">ÉpÉp</span>
<span class="image">pÉpÉpÉpÉ</span></div>
<script>
document.fonts.ready.then(() => {
document.documentElement.classList.remove('reftest-wait');
});
</script>