Files
sousa-gecko/testing/web-platform/tests/css/css-text/parsing/text-fit-computed.html
T
Kent Tamura 9b98e17e9b Bug 2036308 [wpt PR 59571] - css-text: Upstream text-fit tests to WPT, a=testonly
Automatic update from web-platform-tests
css-text: Upstream text-fit tests to WPT

Moves Chromium-internal tests to css/css-text/parsing/ and
css/css-text/text-fit/ directories, with replacing the explainer URL
with the specification URL.

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

--

wpt-commits: 40297804c9452253424f9b690e492a399542eb23
wpt-pr: 59571
2026-05-08 08:37:46 +00:00

25 lines
969 B
HTML

<!DOCTYPE html>
<title>getComputedStyle().textFit</title>
<link rel="help" href="https://drafts.csswg.org/css-text-4/#text-fit-property">
<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>
<script src="/css/support/computed-testcommon.js"></script>
<body>
<div id="target" style="font-size:20px; line-height:1;"></div>
<script>
test_computed_value('text-fit', 'none');
test_computed_value('text-fit', 'grow');
test_computed_value('text-fit', 'shrink');
test_computed_value('text-fit', 'grow consistent', 'grow');
test_computed_value('text-fit', 'grow per-line');
test_computed_value('text-fit', 'grow per-line-all');
test_computed_value('text-fit', 'grow per-line 200%');
test_computed_value('text-fit', 'grow consistent 300%', 'grow 300%');
test_computed_value('text-fit', 'shrink per-line 40%', 'shrink per-line 40%');
test_computed_value('text-fit', 'shrink consistent 20%', 'shrink 20%');
</script>
</body>