Skip to content

Commit 6aa9a39

Browse files
authored
Add interpolation tests for text-align-last and text-justify (WebKit#34193)
1 parent 76bd0b1 commit 6aa9a39

File tree

2 files changed

+86
-0
lines changed

2 files changed

+86
-0
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
<!DOCTYPE html>
2+
<html>
3+
<head>
4+
<meta charset="utf-8">
5+
<title>text-align-last interpolation</title>
6+
<link rel="author" title="Kiet Ho" href="mailto:[email protected]">
7+
<link rel="help" href="https://drafts.csswg.org/css-text/#text-align-last-property">
8+
<meta name="assert" content="text-align-last supports discrete animation">
9+
<script src="/resources/testharness.js"></script>
10+
<script src="/resources/testharnessreport.js"></script>
11+
<script src="/css/support/interpolation-testcommon.js"></script>
12+
</head>
13+
<body>
14+
<script>
15+
test_no_interpolation({
16+
property: 'text-align-last',
17+
from: 'auto',
18+
to: 'start'
19+
});
20+
21+
test_no_interpolation({
22+
property: 'text-align-last',
23+
from: 'justify',
24+
to: 'center'
25+
});
26+
27+
test_no_interpolation({
28+
property: 'text-align-last',
29+
from: 'left',
30+
to: 'right'
31+
});
32+
33+
test_no_interpolation({
34+
property: 'text-align-last',
35+
from: 'end',
36+
to: 'match-parent'
37+
});
38+
</script>
39+
</body>
40+
</html>
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
<!DOCTYPE html>
2+
<html>
3+
<head>
4+
<meta charset="utf-8">
5+
<title>text-justify interpolation</title>
6+
<link rel="author" title="Kiet Ho" href="mailto:[email protected]">
7+
<link rel="help" href="https://drafts.csswg.org/css-text/#text-justify-property">
8+
<meta name="assert" content="text-justify supports discrete animation">
9+
<script src="/resources/testharness.js"></script>
10+
<script src="/resources/testharnessreport.js"></script>
11+
<script src="/css/support/interpolation-testcommon.js"></script>
12+
</head>
13+
<body>
14+
<script>
15+
test_no_interpolation({
16+
property: 'text-justify',
17+
from: 'auto',
18+
to: 'inter-word'
19+
});
20+
21+
test_no_interpolation({
22+
property: 'text-justify',
23+
from: 'auto',
24+
to: 'inter-character'
25+
});
26+
27+
test_no_interpolation({
28+
property: 'text-justify',
29+
from: 'inter-character',
30+
to: 'distribute'
31+
});
32+
33+
test_no_interpolation({
34+
property: 'text-justify',
35+
from: 'inter-word',
36+
to: 'distribute'
37+
});
38+
39+
test_no_interpolation({
40+
property: 'text-justify',
41+
from: 'distribute',
42+
to: 'none'
43+
});
44+
</script>
45+
</body>
46+
</html>

0 commit comments

Comments
 (0)