summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/css/css-text/inheritance.html
blob: f41a5edcaf594a87149fc9f875453c3b87f1805c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
<!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-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>