Files
sousa-gecko/testing/web-platform/tests/css/css-text/inheritance.html
T
Kent Tamura 0e4cf44d3e Bug 2042396 [wpt PR 60173] - text-fit: It should be inherited, a=testonly
Automatic update from web-platform-tests
text-fit: It should be inherited

https://github.com/w3c/csswg-drafts/pull/13965

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

--

wpt-commits: acc34e9bf91192550015c36e7317d7b53a91aab2
wpt-pr: 60173
2026-05-29 15:58:06 +00:00

42 lines
1.7 KiB
HTML

<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>Inheritance of CSS Text properties</title>
<link rel="help" href="https://www.w3.org/TR/css-text/#property-index">
<meta name="assert" content="Properties inherit according to the spec.">
<meta name="assert" content="Properties have initial values according to the spec.">
<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>
<script src="/css/support/inheritance-testcommon.js"></script>
</head>
<body>
<div id="container">
<div id="target"></div>
</div>
<script>
assert_inherited('hanging-punctuation', 'none', 'first last');
assert_inherited('hyphens', 'manual', 'none');
assert_inherited('letter-spacing', 'normal', '10px', '10%');
assert_inherited('line-break', 'auto', 'strict');
assert_inherited('overflow-wrap', 'normal', 'break-word');
assert_inherited('tab-size', '8', '10px');
assert_inherited('text-align', 'start', 'right');
assert_inherited('text-align-all', 'start', 'right');
assert_inherited('text-align-last', 'auto', 'right');
assert_inherited('text-fit', 'none', 'grow');
assert_inherited('text-indent', '0px', '10px');
assert_inherited('text-justify', 'auto', 'inter-character');
assert_inherited('text-transform', 'none', 'uppercase');
assert_inherited('text-wrap', 'wrap', 'nowrap');
assert_inherited('text-wrap-mode', 'wrap', 'nowrap');
assert_inherited('text-wrap-style', 'auto', 'balance');
assert_inherited('white-space', 'normal', 'pre-wrap');
assert_inherited('white-space-collapse', 'collapse', 'preserve');
assert_inherited('word-break', 'normal', 'break-all');
assert_inherited('word-spacing', '0px', '10px', '10%');
assert_inherited('word-wrap', 'normal', 'break-word');
</script>
</body>
</html>