Diff
Modified: trunk/LayoutTests/TestExpectations (295048 => 295049)
--- trunk/LayoutTests/TestExpectations 2022-05-31 13:02:53 UTC (rev 295048)
+++ trunk/LayoutTests/TestExpectations 2022-05-31 13:24:31 UTC (rev 295049)
@@ -2651,8 +2651,6 @@
webkit.org/b/214290 imported/w3c/web-platform-tests/css/css-text/text-indent/text-indent-tab-positions-001.html [ ImageOnlyFailure ]
webkit.org/b/240837 imported/w3c/web-platform-tests/css/css-text/text-indent/anonymous-flex-item-001.html [ ImageOnlyFailure ]
webkit.org/b/240837 imported/w3c/web-platform-tests/css/css-text/text-indent/anonymous-grid-item-001.html [ ImageOnlyFailure ]
-webkit.org/b/183258 imported/w3c/web-platform-tests/css/css-text/text-justify/text-justify-001.html [ ImageOnlyFailure ]
-webkit.org/b/214290 imported/w3c/web-platform-tests/css/css-text/text-justify/text-justify-006.html [ ImageOnlyFailure ]
webkit.org/b/183258 imported/w3c/web-platform-tests/css/css-text/text-transform/text-transform-capitalize-018.html [ ImageOnlyFailure Pass ]
webkit.org/b/183258 imported/w3c/web-platform-tests/css/css-text/text-transform/text-transform-capitalize-020.html [ ImageOnlyFailure Pass ]
webkit.org/b/183258 imported/w3c/web-platform-tests/css/css-text/text-transform/text-transform-capitalize-026.html [ ImageOnlyFailure Pass ]
@@ -2915,6 +2913,16 @@
webkit.org/b/76173 fast/css3-text/css3-text-align-last/text-align-last-with-text-align-justify.html [ ImageOnlyFailure ]
# text-justify
webkit.org/b/99945 fast/css3-text/css3-text-justify/text-justify-none.html [ ImageOnlyFailure ]
+webkit.org/b/99945 imported/w3c/web-platform-tests/css/css-text/text-justify/text-justify-001.html [ ImageOnlyFailure ]
+webkit.org/b/99945 imported/w3c/web-platform-tests/css/css-text/text-justify/text-justify-006.html [ ImageOnlyFailure ]
+webkit.org/b/99945 imported/w3c/web-platform-tests/css/css-text/text-justify/text-justify-and-trailing-spaces-002.html [ ImageOnlyFailure ]
+webkit.org/b/99945 imported/w3c/web-platform-tests/css/css-text/text-justify/text-justify-and-trailing-spaces-003.html [ ImageOnlyFailure ]
+webkit.org/b/99945 imported/w3c/web-platform-tests/css/css-text/text-justify/text-justify-and-trailing-spaces-004.html [ ImageOnlyFailure ]
+webkit.org/b/99945 imported/w3c/web-platform-tests/css/css-text/text-justify/text-justify-and-trailing-spaces-005.html [ ImageOnlyFailure ]
+webkit.org/b/99945 imported/w3c/web-platform-tests/css/css-text/text-justify/text-justify-and-trailing-spaces-006.html [ ImageOnlyFailure ]
+webkit.org/b/99945 imported/w3c/web-platform-tests/css/css-text/text-justify/text-justify-distribute-001.html [ ImageOnlyFailure ]
+webkit.org/b/99945 imported/w3c/web-platform-tests/css/css-text/text-justify/text-justify-inter-character-001.html [ ImageOnlyFailure ]
+webkit.org/b/99945 imported/w3c/web-platform-tests/css/css-text/text-justify/text-justify-inter-word-001.html [ ImageOnlyFailure ]
# Link prefetch is disabled by default (needs ENABLE_LINK_PREFETCH)
webkit.org/b/3652 fast/dom/HTMLLinkElement/link-and-subresource-test.html [ Skip ]
Modified: trunk/LayoutTests/fast/css3-text/css3-text-justify/text-justify-none.html (295048 => 295049)
--- trunk/LayoutTests/fast/css3-text/css3-text-justify/text-justify-none.html 2022-05-31 13:02:53 UTC (rev 295048)
+++ trunk/LayoutTests/fast/css3-text/css3-text-justify/text-justify-none.html 2022-05-31 13:24:31 UTC (rev 295049)
@@ -20,7 +20,7 @@
</div>
<p>text-align: justify, text-justify: none</p>
-<div class='test' style='-webkit-text-justify: none;'>
+<div class='test' style='text-justify: none;'>
The Culture has achieved artificial intelligences where each Mind has thought processing capabilities many orders of magnitude beyond that of human beings, and data storage drives which, if written out on paper and stored...
</div>
</body>
Modified: trunk/LayoutTests/fast/text/text-combine-crash.html (295048 => 295049)
--- trunk/LayoutTests/fast/text/text-combine-crash.html 2022-05-31 13:02:53 UTC (rev 295048)
+++ trunk/LayoutTests/fast/text/text-combine-crash.html 2022-05-31 13:24:31 UTC (rev 295049)
@@ -100,7 +100,7 @@
function webtest_fn_4() {
var head = document.getElementsByTagName("head")[0];
var style = document.createElement("style");
-style.innerHTML="#test {-webkit-box-reflect:above -1073741824pt url(_javascript_:function(){location.reload()}()) 2147483519mm 0xffffffffpt 4611686018427387904% -4294967295cm round stretch;-webkit-line-break:loose;z-index:-32768;-webkit-text-justify:ɰˈ;}";
+style.innerHTML="#test {-webkit-box-reflect:above -1073741824pt url(_javascript_:function(){location.reload()}()) 2147483519mm 0xffffffffpt 4611686018427387904% -4294967295cm round stretch;-webkit-line-break:loose;z-index:-32768;}";
head.appendChild(style);
}
webtest_fn_4();
Modified: trunk/LayoutTests/imported/w3c/resources/resource-files.json (295048 => 295049)
--- trunk/LayoutTests/imported/w3c/resources/resource-files.json 2022-05-31 13:02:53 UTC (rev 295048)
+++ trunk/LayoutTests/imported/w3c/resources/resource-files.json 2022-05-31 13:24:31 UTC (rev 295049)
@@ -1175,6 +1175,9 @@
"web-platform-tests/css/css-text/text-justify/text-justify-003.html",
"web-platform-tests/css/css-text/text-justify/text-justify-004.html",
"web-platform-tests/css/css-text/text-justify/text-justify-005.html",
+ "web-platform-tests/css/css-text/text-justify/text-justify-inter-character-001-ref.html",
+ "web-platform-tests/css/css-text/text-justify/text-justify-inter-word-001-ref.html",
+ "web-platform-tests/css/css-text/text-justify/text-justify-none-001-ref.html",
"web-platform-tests/css/css-text/word-break/word-break-001.html",
"web-platform-tests/css/css-text/word-break/word-break-002.html",
"web-platform-tests/css/css-text/word-break/word-break-003.html",
Modified: trunk/LayoutTests/imported/w3c/web-platform-tests/css/css-cascade/all-prop-initial-xml-expected.txt (295048 => 295049)
--- trunk/LayoutTests/imported/w3c/web-platform-tests/css/css-cascade/all-prop-initial-xml-expected.txt 2022-05-31 13:02:53 UTC (rev 295048)
+++ trunk/LayoutTests/imported/w3c/web-platform-tests/css/css-cascade/all-prop-initial-xml-expected.txt 2022-05-31 13:24:31 UTC (rev 295049)
@@ -301,6 +301,7 @@
PASS text-emphasis-position
PASS text-emphasis-style
PASS text-indent
+PASS text-justify
PASS text-orientation
PASS text-overflow
PASS text-rendering
@@ -387,7 +388,6 @@
PASS -webkit-ruby-position
PASS -webkit-text-combine
PASS -webkit-text-fill-color
-PASS -webkit-text-justify
PASS -webkit-text-security
PASS -webkit-text-size-adjust
PASS -webkit-text-stroke-color
Modified: trunk/LayoutTests/imported/w3c/web-platform-tests/css/css-cascade/all-prop-revert-layer-expected.txt (295048 => 295049)
--- trunk/LayoutTests/imported/w3c/web-platform-tests/css/css-cascade/all-prop-revert-layer-expected.txt 2022-05-31 13:02:53 UTC (rev 295048)
+++ trunk/LayoutTests/imported/w3c/web-platform-tests/css/css-cascade/all-prop-revert-layer-expected.txt 2022-05-31 13:24:31 UTC (rev 295049)
@@ -297,6 +297,7 @@
PASS text-emphasis-position
PASS text-emphasis-style
PASS text-indent
+PASS text-justify
PASS text-orientation
PASS text-overflow
PASS text-rendering
Modified: trunk/LayoutTests/imported/w3c/web-platform-tests/css/css-pseudo/first-letter-allowed-properties-expected.txt (295048 => 295049)
--- trunk/LayoutTests/imported/w3c/web-platform-tests/css/css-pseudo/first-letter-allowed-properties-expected.txt 2022-05-31 13:02:53 UTC (rev 295048)
+++ trunk/LayoutTests/imported/w3c/web-platform-tests/css/css-pseudo/first-letter-allowed-properties-expected.txt 2022-05-31 13:24:31 UTC (rev 295049)
@@ -25,7 +25,7 @@
PASS padding should be applied to first-letter pseudo elements.
PASS opacity should be applied to first-letter pseudo elements.
FAIL textDecoration should be applied to first-letter pseudo elements. assert_equals: expected "overline wavy rgb(10, 20, 30)" but got "none"
-FAIL textJustify should be applied to first-letter pseudo elements. assert_equals: expected (string) "inter-word" but got (undefined) undefined
+PASS textJustify should be applied to first-letter pseudo elements.
PASS textShadow should be applied to first-letter pseudo elements.
PASS textTransform should be applied to first-letter pseudo elements.
PASS textUnderlinePosition should be applied to first-letter pseudo elements.
Modified: trunk/LayoutTests/imported/w3c/web-platform-tests/css/css-pseudo/first-line-allowed-properties-expected.txt (295048 => 295049)
--- trunk/LayoutTests/imported/w3c/web-platform-tests/css/css-pseudo/first-line-allowed-properties-expected.txt 2022-05-31 13:02:53 UTC (rev 295048)
+++ trunk/LayoutTests/imported/w3c/web-platform-tests/css/css-pseudo/first-line-allowed-properties-expected.txt 2022-05-31 13:24:31 UTC (rev 295049)
@@ -22,7 +22,7 @@
PASS letterSpacing should be applied to first-line pseudo elements.
PASS opacity should be applied to first-line pseudo elements.
FAIL textDecoration should be applied to first-line pseudo elements. assert_equals: expected "overline wavy rgb(10, 20, 30)" but got "none"
-FAIL textJustify should be applied to first-line pseudo elements. assert_equals: expected (string) "none" but got (undefined) undefined
+PASS textJustify should be applied to first-line pseudo elements.
PASS textShadow should be applied to first-line pseudo elements.
PASS textTransform should be applied to first-line pseudo elements.
PASS textUnderlinePosition should be applied to first-line pseudo elements.
Modified: trunk/LayoutTests/imported/w3c/web-platform-tests/css/css-text/inheritance-expected.txt (295048 => 295049)
--- trunk/LayoutTests/imported/w3c/web-platform-tests/css/css-text/inheritance-expected.txt 2022-05-31 13:02:53 UTC (rev 295048)
+++ trunk/LayoutTests/imported/w3c/web-platform-tests/css/css-text/inheritance-expected.txt 2022-05-31 13:24:31 UTC (rev 295049)
@@ -17,8 +17,8 @@
PASS Property text-align-last inherits
PASS Property text-indent has initial value 0px
PASS Property text-indent inherits
-FAIL Property text-justify has initial value auto assert_true: text-justify doesn't seem to be supported in the computed style expected true got false
-FAIL Property text-justify inherits assert_true: text-justify doesn't seem to be supported in the computed style expected true got false
+PASS Property text-justify has initial value auto
+PASS Property text-justify inherits
PASS Property text-transform has initial value none
PASS Property text-transform inherits
PASS Property white-space has initial value normal
Modified: trunk/LayoutTests/imported/w3c/web-platform-tests/css/css-text/letter-spacing/letter-spacing-bidi-003.xht (295048 => 295049)
--- trunk/LayoutTests/imported/w3c/web-platform-tests/css/css-text/letter-spacing/letter-spacing-bidi-003.xht 2022-05-31 13:02:53 UTC (rev 295048)
+++ trunk/LayoutTests/imported/w3c/web-platform-tests/css/css-text/letter-spacing/letter-spacing-bidi-003.xht 2022-05-31 13:24:31 UTC (rev 295049)
@@ -22,7 +22,7 @@
}
.justify {
text-align-last: justify;
- -webkit-text-justify: inter-word;
+ text-justify: inter-word;
}
.narrow {
letter-spacing: 1ch;
Modified: trunk/LayoutTests/imported/w3c/web-platform-tests/css/css-text/parsing/text-justify-computed-expected.txt (295048 => 295049)
--- trunk/LayoutTests/imported/w3c/web-platform-tests/css/css-text/parsing/text-justify-computed-expected.txt 2022-05-31 13:02:53 UTC (rev 295048)
+++ trunk/LayoutTests/imported/w3c/web-platform-tests/css/css-text/parsing/text-justify-computed-expected.txt 2022-05-31 13:24:31 UTC (rev 295049)
@@ -1,6 +1,6 @@
-FAIL Property text-justify value 'auto' assert_true: text-justify doesn't seem to be supported in the computed style expected true got false
-FAIL Property text-justify value 'none' assert_true: text-justify doesn't seem to be supported in the computed style expected true got false
-FAIL Property text-justify value 'inter-word' assert_true: text-justify doesn't seem to be supported in the computed style expected true got false
-FAIL Property text-justify value 'inter-character' assert_true: text-justify doesn't seem to be supported in the computed style expected true got false
+PASS Property text-justify value 'auto'
+PASS Property text-justify value 'none'
+PASS Property text-justify value 'inter-word'
+PASS Property text-justify value 'inter-character'
Modified: trunk/LayoutTests/imported/w3c/web-platform-tests/css/css-text/parsing/text-justify-valid-expected.txt (295048 => 295049)
--- trunk/LayoutTests/imported/w3c/web-platform-tests/css/css-text/parsing/text-justify-valid-expected.txt 2022-05-31 13:02:53 UTC (rev 295048)
+++ trunk/LayoutTests/imported/w3c/web-platform-tests/css/css-text/parsing/text-justify-valid-expected.txt 2022-05-31 13:24:31 UTC (rev 295049)
@@ -1,6 +1,6 @@
-FAIL e.style['text-justify'] = "auto" should set the property value assert_not_equals: property should be set got disallowed value ""
-FAIL e.style['text-justify'] = "none" should set the property value assert_not_equals: property should be set got disallowed value ""
-FAIL e.style['text-justify'] = "inter-word" should set the property value assert_not_equals: property should be set got disallowed value ""
-FAIL e.style['text-justify'] = "inter-character" should set the property value assert_not_equals: property should be set got disallowed value ""
+PASS e.style['text-justify'] = "auto" should set the property value
+PASS e.style['text-justify'] = "none" should set the property value
+PASS e.style['text-justify'] = "inter-word" should set the property value
+PASS e.style['text-justify'] = "inter-character" should set the property value
Added: trunk/LayoutTests/imported/w3c/web-platform-tests/css/css-text/text-justify/distribute-alias.tentative-expected.txt (0 => 295049)
--- trunk/LayoutTests/imported/w3c/web-platform-tests/css/css-text/text-justify/distribute-alias.tentative-expected.txt (rev 0)
+++ trunk/LayoutTests/imported/w3c/web-platform-tests/css/css-text/text-justify/distribute-alias.tentative-expected.txt 2022-05-31 13:24:31 UTC (rev 295049)
@@ -0,0 +1,3 @@
+
+FAIL text-justify: distribute is a parse-time alias of inter-character assert_equals: expected "inter-character" but got "distribute"
+
Added: trunk/LayoutTests/imported/w3c/web-platform-tests/css/css-text/text-justify/distribute-alias.tentative.html (0 => 295049)
--- trunk/LayoutTests/imported/w3c/web-platform-tests/css/css-text/text-justify/distribute-alias.tentative.html (rev 0)
+++ trunk/LayoutTests/imported/w3c/web-platform-tests/css/css-text/text-justify/distribute-alias.tentative.html 2022-05-31 13:24:31 UTC (rev 295049)
@@ -0,0 +1,14 @@
+<!doctype html>
+<link rel=author href="" title="Emilio Cobos Álvarez">
+<link rel=author href="" title="Mozilla">
+<link rel=help href=""
+<title>text-justify: distribute is a parse-time alias of inter-character</title>
+<script src=""
+<script src=""
+<script>
+ test(function() {
+ let style = document.createElement("div").style;
+ style.textJustify = "distribute";
+ assert_equals(style.textJustify, "inter-character");
+ });
+</script>
Modified: trunk/LayoutTests/imported/w3c/web-platform-tests/css/css-text/text-justify/text-justify-001.html (295048 => 295049)
--- trunk/LayoutTests/imported/w3c/web-platform-tests/css/css-text/text-justify/text-justify-001.html 2022-05-31 13:02:53 UTC (rev 295048)
+++ trunk/LayoutTests/imported/w3c/web-platform-tests/css/css-text/text-justify/text-justify-001.html 2022-05-31 13:24:31 UTC (rev 295049)
@@ -9,7 +9,7 @@
<meta name="assert" content="text-justify:none means justification is disabled: there are no justification opportunities within the text.">
<link rel="stylesheet" type="text/css" href="" />
<style type='text/css'>
-.test { text-align: justify; -webkit-text-justify: none; }
+.test { text-align: justify; text-justify: none; }
/* the CSS below is not part of the test */
.test, .ref { border: 1px solid orange; margin: 20px; width: 290px; color: orange; font: 24px/24px Ahem; }
.ref { position: relative; height: 72px; }
Modified: trunk/LayoutTests/imported/w3c/web-platform-tests/css/css-text/text-justify/text-justify-002.html (295048 => 295049)
--- trunk/LayoutTests/imported/w3c/web-platform-tests/css/css-text/text-justify/text-justify-002.html 2022-05-31 13:02:53 UTC (rev 295048)
+++ trunk/LayoutTests/imported/w3c/web-platform-tests/css/css-text/text-justify/text-justify-002.html 2022-05-31 13:24:31 UTC (rev 295049)
@@ -8,7 +8,7 @@
<meta name="assert" content="text-justify:inter-character means justification adjusts spacing between each pair of adjacent typographic character units.">
<link rel="stylesheet" type="text/css" href="" />
<style type='text/css'>
-.test { text-align: justify; -webkit-text-justify: inter-character; }
+.test { text-align: justify; text-justify: inter-character; }
/* the CSS below is not part of the test */
.test { border: 1px solid blue; margin: 20px; width: 290px; color: blue; font: 24px/24px Ahem; }
</style>
Modified: trunk/LayoutTests/imported/w3c/web-platform-tests/css/css-text/text-justify/text-justify-003.html (295048 => 295049)
--- trunk/LayoutTests/imported/w3c/web-platform-tests/css/css-text/text-justify/text-justify-003.html 2022-05-31 13:02:53 UTC (rev 295048)
+++ trunk/LayoutTests/imported/w3c/web-platform-tests/css/css-text/text-justify/text-justify-003.html 2022-05-31 13:24:31 UTC (rev 295049)
@@ -8,7 +8,7 @@
<meta name="assert" content="text-justify:distribute means justification adjusts spacing between each pair of adjacent typographic character units.">
<link rel="stylesheet" type="text/css" href="" />
<style type='text/css'>
-.test { text-align: justify; -webkit-text-justify: distribute; }
+.test { text-align: justify; text-justify: distribute; }
/* the CSS below is not part of the test */
.test { border: 1px solid blue; margin: 20px; width: 290px; color: blue; font: 24px/24px Ahem; }
</style>
Modified: trunk/LayoutTests/imported/w3c/web-platform-tests/css/css-text/text-justify/text-justify-004.html (295048 => 295049)
--- trunk/LayoutTests/imported/w3c/web-platform-tests/css/css-text/text-justify/text-justify-004.html 2022-05-31 13:02:53 UTC (rev 295048)
+++ trunk/LayoutTests/imported/w3c/web-platform-tests/css/css-text/text-justify/text-justify-004.html 2022-05-31 13:24:31 UTC (rev 295049)
@@ -7,7 +7,7 @@
<link rel='help' href=''>
<meta name="assert" content="text-justify:inter-character means justification adjusts spacing between each pair of adjacent typographic character units. Justification must not introduce gaps between the joined typographic letter units of cursive scripts such as Arabic.">
<style type='text/css'>
-.test { text-align: justify; -webkit-text-justify: inter-character; }
+.test { text-align: justify; text-justify: inter-character; }
/* the CSS below is not part of the test */
.test { border: 1px solid blue; margin: 20px; width: 290px; font-size: 28px; }
</style>
Modified: trunk/LayoutTests/imported/w3c/web-platform-tests/css/css-text/text-justify/text-justify-005.html (295048 => 295049)
--- trunk/LayoutTests/imported/w3c/web-platform-tests/css/css-text/text-justify/text-justify-005.html 2022-05-31 13:02:53 UTC (rev 295048)
+++ trunk/LayoutTests/imported/w3c/web-platform-tests/css/css-text/text-justify/text-justify-005.html 2022-05-31 13:24:31 UTC (rev 295049)
@@ -7,7 +7,7 @@
<link rel='help' href=''>
<meta name="assert" content="text-justify:distribute means justification adjusts spacing between each pair of adjacent typographic character units. Justification must not introduce gaps between the joined typographic letter units of cursive scripts such as Arabic.">
<style type='text/css'>
-.test { text-align: justify; -webkit-text-justify: distribute; }
+.test { text-align: justify; text-justify: distribute; }
/* the CSS below is not part of the test */
.test { border: 1px solid blue; margin: 20px; width: 290px; font-size: 28px; }
</style>
Modified: trunk/LayoutTests/imported/w3c/web-platform-tests/css/css-text/text-justify/text-justify-006.html (295048 => 295049)
--- trunk/LayoutTests/imported/w3c/web-platform-tests/css/css-text/text-justify/text-justify-006.html 2022-05-31 13:02:53 UTC (rev 295048)
+++ trunk/LayoutTests/imported/w3c/web-platform-tests/css/css-text/text-justify/text-justify-006.html 2022-05-31 13:24:31 UTC (rev 295049)
@@ -22,7 +22,7 @@
color: blue;
}
span {
- -webkit-text-justify: none;
+ text-justify: none;
}
/* this is just filler content to have an invisible last line, as jutification does not affect the last line */
Added: trunk/LayoutTests/imported/w3c/web-platform-tests/css/css-text/text-justify/text-justify-and-trailing-spaces-001-expected.html (0 => 295049)
--- trunk/LayoutTests/imported/w3c/web-platform-tests/css/css-text/text-justify/text-justify-and-trailing-spaces-001-expected.html (rev 0)
+++ trunk/LayoutTests/imported/w3c/web-platform-tests/css/css-text/text-justify/text-justify-and-trailing-spaces-001-expected.html 2022-05-31 13:24:31 UTC (rev 295049)
@@ -0,0 +1,20 @@
+<!DOCTYPE html>
+<html lang="en" >
+<head>
+<meta charset="utf-8">
+<title>test reference</title>
+<link rel="author" title="Javier Fernandez" href="" />
+<style>
+div {
+ width: 7ch;
+ font: 20px monospace;
+ background: blue;
+}
+span {
+ background: green;
+}
+</style>
+
+<p>Test passes if we have XX at each edge of the blue box and XXX in the second line (left-edge trailing space if not removed)</p>
+<div><span>XX XX <br>XXX</span></div>
+
Added: trunk/LayoutTests/imported/w3c/web-platform-tests/css/css-text/text-justify/text-justify-and-trailing-spaces-001.html (0 => 295049)
--- trunk/LayoutTests/imported/w3c/web-platform-tests/css/css-text/text-justify/text-justify-and-trailing-spaces-001.html (rev 0)
+++ trunk/LayoutTests/imported/w3c/web-platform-tests/css/css-text/text-justify/text-justify-and-trailing-spaces-001.html 2022-05-31 13:24:31 UTC (rev 295049)
@@ -0,0 +1,25 @@
+<!DOCTYPE html>
+<html lang="en" >
+<head>
+<meta charset="utf-8">
+<title>CSS text tests: How trailing spaces affect text-justify </title>
+<link rel="author" title="Javier Fernandez" href="" />
+<link rel='help' href=''>
+<link rel='match' href=''>
+<link rel='match' href=''>
+<meta name="assert" content="The text in the first line is correctly justified, leaving aside the trailing space, which must hang or be removed.">
+<style>
+.test {
+ width: 7ch;
+ font: 20px monospace;
+ background: blue;
+
+ white-space: pre-wrap;
+ text-align: justify;
+}
+.test > span {
+ background: green;;
+}
+</style>
+<p>Test passes if we have XX at each edge of the blue box and XXX in the second line (left-edge trailing space if not removed)</p>
+<div class="test"><span>XX XX </span><span>XXX</span></div>
Added: trunk/LayoutTests/imported/w3c/web-platform-tests/css/css-text/text-justify/text-justify-and-trailing-spaces-002-expected.html (0 => 295049)
--- trunk/LayoutTests/imported/w3c/web-platform-tests/css/css-text/text-justify/text-justify-and-trailing-spaces-002-expected.html (rev 0)
+++ trunk/LayoutTests/imported/w3c/web-platform-tests/css/css-text/text-justify/text-justify-and-trailing-spaces-002-expected.html 2022-05-31 13:24:31 UTC (rev 295049)
@@ -0,0 +1,20 @@
+<!DOCTYPE html>
+<html lang="en" >
+<head>
+<meta charset="utf-8">
+<title>test reference</title>
+<link rel="author" title="Javier Fernandez" href="" />
+<style>
+div {
+ width: 7ch;
+ font: 20px monospace;
+ background: blue;
+}
+span {
+ background: green;
+}
+</style>
+
+<p>Test passes if we have XX at each edge of the blue box and XXX in the second line (left-edge trailing space if not removed)</p>
+<div><span>XX XX <br>XXX</span></div>
+
Added: trunk/LayoutTests/imported/w3c/web-platform-tests/css/css-text/text-justify/text-justify-and-trailing-spaces-002.html (0 => 295049)
--- trunk/LayoutTests/imported/w3c/web-platform-tests/css/css-text/text-justify/text-justify-and-trailing-spaces-002.html (rev 0)
+++ trunk/LayoutTests/imported/w3c/web-platform-tests/css/css-text/text-justify/text-justify-and-trailing-spaces-002.html 2022-05-31 13:24:31 UTC (rev 295049)
@@ -0,0 +1,25 @@
+<!DOCTYPE html>
+<html lang="en" >
+<head>
+<meta charset="utf-8">
+<title>CSS text tests: How trailing spaces affect text-justify </title>
+<link rel="author" title="Javier Fernandez" href="" />
+<link rel='help' href=''>
+<link rel='match' href=''>
+<link rel='match' href=''>
+<meta name="assert" content="The text in the first line is correctly justified, leaving aside the trailing space, which must hang or be removed.">
+<style>
+.test {
+ width: 7ch;
+ font: 20px monospace;
+ background: blue;
+
+ white-space: pre-wrap;
+ text-align: justify;
+}
+.test > span {
+ background: green;;
+}
+</style>
+<p>Test passes if we have XX at each edge of the blue box and XXX in the second line (left-edge trailing space if not removed)</p>
+<div class="test"><span>XX XX XXX</span></div>
Added: trunk/LayoutTests/imported/w3c/web-platform-tests/css/css-text/text-justify/text-justify-and-trailing-spaces-003-expected.html (0 => 295049)
--- trunk/LayoutTests/imported/w3c/web-platform-tests/css/css-text/text-justify/text-justify-and-trailing-spaces-003-expected.html (rev 0)
+++ trunk/LayoutTests/imported/w3c/web-platform-tests/css/css-text/text-justify/text-justify-and-trailing-spaces-003-expected.html 2022-05-31 13:24:31 UTC (rev 295049)
@@ -0,0 +1,21 @@
+<!DOCTYPE html>
+<html lang="en" >
+<head>
+<meta charset="utf-8">
+<title>test reference</title>
+<link rel="author" title="Javier Fernandez" href="" />
+<style>
+div {
+ width: 7ch;
+ font: 20px monospace;
+ background: blue;
+ margin-left: 20px;
+ direction: rtl;
+}
+span {
+ background: green;
+}
+</style>
+
+<p>Test passes if we have XX at each edge of the blue box and XXX in the second line (left-edge trailing space if not removed)</p>
+<div><span>XX XX <br>XXX</span></div>
Added: trunk/LayoutTests/imported/w3c/web-platform-tests/css/css-text/text-justify/text-justify-and-trailing-spaces-003.html (0 => 295049)
--- trunk/LayoutTests/imported/w3c/web-platform-tests/css/css-text/text-justify/text-justify-and-trailing-spaces-003.html (rev 0)
+++ trunk/LayoutTests/imported/w3c/web-platform-tests/css/css-text/text-justify/text-justify-and-trailing-spaces-003.html 2022-05-31 13:24:31 UTC (rev 295049)
@@ -0,0 +1,28 @@
+<!DOCTYPE html>
+<html lang="en" >
+<head>
+<meta charset="utf-8">
+<title>CSS text tests: How trailing spaces affect text-justify </title>
+<link rel="author" title="Javier Fernandez" href="" />
+<link rel='help' href=''>
+<link rel='match' href=''>
+<link rel='match' href=''>
+<meta name="assert" content="The RTL text in the first line is correctly justified, leaving aside the trailing space, which must hang or be removed.">
+<style>
+.test {
+ width: 7ch;
+ font: 20px monospace;
+ background: blue;
+ margin-left: 20px;
+
+ direction: rtl;
+
+ white-space: pre-wrap;
+ text-align: justify;
+}
+.test > span {
+ background: green;;
+}
+</style>
+<p>Test passes if we have XX at each edge of the blue box and XXX in the second line (left-edge trailing space if not removed)</p>
+<div class="test"><span>XX XX </span><span>XXX</span></div>
Added: trunk/LayoutTests/imported/w3c/web-platform-tests/css/css-text/text-justify/text-justify-and-trailing-spaces-004-expected.html (0 => 295049)
--- trunk/LayoutTests/imported/w3c/web-platform-tests/css/css-text/text-justify/text-justify-and-trailing-spaces-004-expected.html (rev 0)
+++ trunk/LayoutTests/imported/w3c/web-platform-tests/css/css-text/text-justify/text-justify-and-trailing-spaces-004-expected.html 2022-05-31 13:24:31 UTC (rev 295049)
@@ -0,0 +1,21 @@
+<!DOCTYPE html>
+<html lang="en" >
+<head>
+<meta charset="utf-8">
+<title>test reference</title>
+<link rel="author" title="Javier Fernandez" href="" />
+<style>
+div {
+ width: 7ch;
+ font: 20px monospace;
+ background: blue;
+ margin-left: 20px;
+ direction: rtl;
+}
+span {
+ background: green;
+}
+</style>
+
+<p>Test passes if we have XX at each edge of the blue box and XXX in the second line (left-edge trailing space if not removed)</p>
+<div><span>XX XX <br>XXX</span></div>
Added: trunk/LayoutTests/imported/w3c/web-platform-tests/css/css-text/text-justify/text-justify-and-trailing-spaces-004.html (0 => 295049)
--- trunk/LayoutTests/imported/w3c/web-platform-tests/css/css-text/text-justify/text-justify-and-trailing-spaces-004.html (rev 0)
+++ trunk/LayoutTests/imported/w3c/web-platform-tests/css/css-text/text-justify/text-justify-and-trailing-spaces-004.html 2022-05-31 13:24:31 UTC (rev 295049)
@@ -0,0 +1,28 @@
+<!DOCTYPE html>
+<html lang="en" >
+<head>
+<meta charset="utf-8">
+<title>CSS text tests: How trailing spaces affect text-justify </title>
+<link rel="author" title="Javier Fernandez" href="" />
+<link rel='help' href=''>
+<link rel='match' href=''>
+<link rel='match' href=''>
+<meta name="assert" content="The RTL text in the first line is correctly justified, leaving aside the trailing space, which must hang or be removed.">
+<style>
+.test {
+ width: 7ch;
+ font: 20px monospace;
+ background: blue;
+ margin-left: 20px;
+
+ direction: rtl;
+
+ white-space: pre-wrap;
+ text-align: justify;
+}
+.test > span {
+ background: green;;
+}
+</style>
+<p>Test passes if we have XX at each edge of the blue box and XXX in the second line (left-edge trailing space if not removed)</p>
+<div class="test"><span>XX XX XXX</span></div>
Added: trunk/LayoutTests/imported/w3c/web-platform-tests/css/css-text/text-justify/text-justify-and-trailing-spaces-005-expected.html (0 => 295049)
--- trunk/LayoutTests/imported/w3c/web-platform-tests/css/css-text/text-justify/text-justify-and-trailing-spaces-005-expected.html (rev 0)
+++ trunk/LayoutTests/imported/w3c/web-platform-tests/css/css-text/text-justify/text-justify-and-trailing-spaces-005-expected.html 2022-05-31 13:24:31 UTC (rev 295049)
@@ -0,0 +1,31 @@
+<!DOCTYPE html>
+<html lang="en" >
+<head>
+<meta charset="utf-8">
+<title>test reference</title>
+<link rel="author" title="Javier Fernandez" href="" />
+<style>
+@font-face {
+ font-family: 'ezra_silregular';
+ src: url('/fonts/sileot-webfont.woff') format('woff');
+ font-weight: normal;
+ font-style: normal;
+}
+div {
+ font-family: ezra_silregular, monospace;
+ font-size: 15px;
+}
+</style>
+
+<p>Test passes if we have a first line with hebrew justified and XXX in the second line (left-edge trailing space if not removed)</p>
+<div style="position: relative; width: 20px;">
+ <div style="display: inline; background: green; position: absolute; right: 0px;"> </div>
+</div>
+<div style="position: relative; margin-left: 20px; width: 70px;">
+ <div style="float: right; background: green;">הם</div>
+ <div style="background: green;">דה<br></div>
+</div>
+<div style="position: relative; margin-left: 20px; background: blue; width: 70px; direction: rtl;">
+ <div style="display: inline; background: green; ">XXX</div>
+</div>
+
Added: trunk/LayoutTests/imported/w3c/web-platform-tests/css/css-text/text-justify/text-justify-and-trailing-spaces-005.html (0 => 295049)
--- trunk/LayoutTests/imported/w3c/web-platform-tests/css/css-text/text-justify/text-justify-and-trailing-spaces-005.html (rev 0)
+++ trunk/LayoutTests/imported/w3c/web-platform-tests/css/css-text/text-justify/text-justify-and-trailing-spaces-005.html 2022-05-31 13:24:31 UTC (rev 295049)
@@ -0,0 +1,35 @@
+<!DOCTYPE html>
+<html lang="en" >
+<head>
+<meta charset="utf-8">
+<title>CSS text tests: How trailing spaces affect text-justify </title>
+<link rel="author" title="Javier Fernandez" href="" />
+<link rel='help' href=''>
+<link rel='match' href=''>
+<link rel='match' href=''>
+<meta name="assert" content="The RTL text in the first line is correctly justified, leaving aside the trailing space, which must hang or be removed.">
+<style>
+@font-face {
+ font-family: 'ezra_silregular';
+ src: url('/fonts/sileot-webfont.woff') format('woff');
+ font-weight: normal;
+ font-style: normal;
+}
+.test {
+ width: 70px;
+ font-family: ezra_silregular, monospace;
+ font-size: 15px;
+ background: blue;
+ margin-left: 20px;
+
+ direction: rtl;
+
+ white-space: pre-wrap;
+ text-align: justify;
+}
+.test > span {
+ background: green;;
+}
+</style>
+<p>Test passes if we have a first line with hebrew justified and XXX in the second line (left-edge trailing space if not removed)</p>
+<div class="test"><span>הם דה </span><span>XXX</span></div>
Added: trunk/LayoutTests/imported/w3c/web-platform-tests/css/css-text/text-justify/text-justify-and-trailing-spaces-006-expected.html (0 => 295049)
--- trunk/LayoutTests/imported/w3c/web-platform-tests/css/css-text/text-justify/text-justify-and-trailing-spaces-006-expected.html (rev 0)
+++ trunk/LayoutTests/imported/w3c/web-platform-tests/css/css-text/text-justify/text-justify-and-trailing-spaces-006-expected.html 2022-05-31 13:24:31 UTC (rev 295049)
@@ -0,0 +1,31 @@
+<!DOCTYPE html>
+<html lang="en" >
+<head>
+<meta charset="utf-8">
+<title>test reference</title>
+<link rel="author" title="Javier Fernandez" href="" />
+<style>
+@font-face {
+ font-family: 'ezra_silregular';
+ src: url('/fonts/sileot-webfont.woff') format('woff');
+ font-weight: normal;
+ font-style: normal;
+}
+div {
+ font-family: ezra_silregular, monospace;
+ font-size: 15px;
+}
+</style>
+
+<p>Test passes if we have a first line with hebrew justified and XXX in the second line (left-edge trailing space if not removed)</p>
+<div style="position: relative; width: 20px;">
+ <div style="display: inline; background: green; position: absolute; right: 0px;"> </div>
+</div>
+<div style="position: relative; margin-left: 20px; width: 70px;">
+ <div style="float: right; background: green;">הם</div>
+ <div style="background: green;">דה<br></div>
+</div>
+<div style="position: relative; margin-left: 20px; background: blue; width: 70px; direction: rtl;">
+ <div style="display: inline; background: green; ">XXX</div>
+</div>
+
Added: trunk/LayoutTests/imported/w3c/web-platform-tests/css/css-text/text-justify/text-justify-and-trailing-spaces-006.html (0 => 295049)
--- trunk/LayoutTests/imported/w3c/web-platform-tests/css/css-text/text-justify/text-justify-and-trailing-spaces-006.html (rev 0)
+++ trunk/LayoutTests/imported/w3c/web-platform-tests/css/css-text/text-justify/text-justify-and-trailing-spaces-006.html 2022-05-31 13:24:31 UTC (rev 295049)
@@ -0,0 +1,35 @@
+<!DOCTYPE html>
+<html lang="en" >
+<head>
+<meta charset="utf-8">
+<title>CSS text tests: How trailing spaces affect text-justify </title>
+<link rel="author" title="Javier Fernandez" href="" />
+<link rel='help' href=''>
+<link rel='match' href=''>
+<link rel='match' href=''>
+<meta name="assert" content="The RTL text in the first line is correctly justified, leaving aside the trailing space, which must hang or be removed.">
+<style>
+@font-face {
+ font-family: 'ezra_silregular';
+ src: url('/fonts/sileot-webfont.woff') format('woff');
+ font-weight: normal;
+ font-style: normal;
+}
+.test {
+ width: 70px;
+ font-family: ezra_silregular, monospace;
+ font-size: 15px;
+ background: blue;
+ margin-left: 20px;
+
+ direction: rtl;
+
+ white-space: pre-wrap;
+ text-align: justify;
+}
+.test > span {
+ background: green;;
+}
+</style>
+<p>Test passes if we have a first line with hebrew justified and XXX in the second line (left-edge trailing space if not removed)</p>
+<div class="test"><span>הם דה XXX</span></div>
Added: trunk/LayoutTests/imported/w3c/web-platform-tests/css/css-text/text-justify/text-justify-distribute-001-expected.html (0 => 295049)
--- trunk/LayoutTests/imported/w3c/web-platform-tests/css/css-text/text-justify/text-justify-distribute-001-expected.html (rev 0)
+++ trunk/LayoutTests/imported/w3c/web-platform-tests/css/css-text/text-justify/text-justify-distribute-001-expected.html 2022-05-31 13:24:31 UTC (rev 295049)
@@ -0,0 +1,24 @@
+<!DOCTYPE html>
+<html>
+<head>
+<meta charset="utf-8">
+<title>CSS Text 7.4. Justification Method: text-justify: inter-character</title>
+<link rel="author" title="Chun-Min (Jeremy) Chen" href=""
+<link rel="author" title="Mozilla" href=""
+<style type='text/css'>
+p {
+ font-size: 1.5em;
+ border: 1px solid black;
+ padding: 10px;
+ margin-right: 310px;
+}
+.right {
+ float: right;
+}
+</style>
+</head>
+<body>
+<p lang="en">X<span class="right">X</span></p>
+<p lang="ja">文<span class="right">字</span></p>
+</body>
+</html>
Added: trunk/LayoutTests/imported/w3c/web-platform-tests/css/css-text/text-justify/text-justify-distribute-001.html (0 => 295049)
--- trunk/LayoutTests/imported/w3c/web-platform-tests/css/css-text/text-justify/text-justify-distribute-001.html (rev 0)
+++ trunk/LayoutTests/imported/w3c/web-platform-tests/css/css-text/text-justify/text-justify-distribute-001.html 2022-05-31 13:24:31 UTC (rev 295049)
@@ -0,0 +1,28 @@
+<!DOCTYPE html>
+<html>
+<head>
+<meta charset="utf-8">
+<title>CSS Text 7.4. Justification Method: text-justify: distribute</title>
+<link rel="author" title="Chun-Min (Jeremy) Chen" href=""
+<link rel="author" title="Mozilla" href=""
+<link rel="help" href=""
+<link rel='match' href=''>
+<meta name="assert" content="text-justify:distribute means justification adjusts spacing between each pair of adjacent typographic character units.">
+<style type='text/css'>
+p {
+ font-size: 1.5em;
+ border: 1px solid black;
+ padding: 10px;
+ margin-right: 310px;
+}
+.test {
+ text-align-last: justify;
+ text-justify: distribute;
+}
+</style>
+</head>
+<body>
+<p lang="en" class="test">XX</p>
+<p lang="ja" class="test">文字</p>
+</body>
+</html>
Added: trunk/LayoutTests/imported/w3c/web-platform-tests/css/css-text/text-justify/text-justify-inter-character-001-expected.html (0 => 295049)
--- trunk/LayoutTests/imported/w3c/web-platform-tests/css/css-text/text-justify/text-justify-inter-character-001-expected.html (rev 0)
+++ trunk/LayoutTests/imported/w3c/web-platform-tests/css/css-text/text-justify/text-justify-inter-character-001-expected.html 2022-05-31 13:24:31 UTC (rev 295049)
@@ -0,0 +1,24 @@
+<!DOCTYPE html>
+<html>
+<head>
+<meta charset="utf-8">
+<title>CSS Text 7.4. Justification Method: text-justify: inter-character</title>
+<link rel="author" title="Chun-Min (Jeremy) Chen" href=""
+<link rel="author" title="Mozilla" href=""
+<style type='text/css'>
+p {
+ font-size: 1.5em;
+ border: 1px solid black;
+ padding: 10px;
+ margin-right: 310px;
+}
+.right {
+ float: right;
+}
+</style>
+</head>
+<body>
+<p lang="en">X<span class="right">X</span></p>
+<p lang="ja">文<span class="right">字</span></p>
+</body>
+</html>
Added: trunk/LayoutTests/imported/w3c/web-platform-tests/css/css-text/text-justify/text-justify-inter-character-001-ref.html (0 => 295049)
--- trunk/LayoutTests/imported/w3c/web-platform-tests/css/css-text/text-justify/text-justify-inter-character-001-ref.html (rev 0)
+++ trunk/LayoutTests/imported/w3c/web-platform-tests/css/css-text/text-justify/text-justify-inter-character-001-ref.html 2022-05-31 13:24:31 UTC (rev 295049)
@@ -0,0 +1,24 @@
+<!DOCTYPE html>
+<html>
+<head>
+<meta charset="utf-8">
+<title>CSS Text 7.4. Justification Method: text-justify: inter-character</title>
+<link rel="author" title="Chun-Min (Jeremy) Chen" href=""
+<link rel="author" title="Mozilla" href=""
+<style type='text/css'>
+p {
+ font-size: 1.5em;
+ border: 1px solid black;
+ padding: 10px;
+ margin-right: 310px;
+}
+.right {
+ float: right;
+}
+</style>
+</head>
+<body>
+<p lang="en">X<span class="right">X</span></p>
+<p lang="ja">文<span class="right">字</span></p>
+</body>
+</html>
Added: trunk/LayoutTests/imported/w3c/web-platform-tests/css/css-text/text-justify/text-justify-inter-character-001.html (0 => 295049)
--- trunk/LayoutTests/imported/w3c/web-platform-tests/css/css-text/text-justify/text-justify-inter-character-001.html (rev 0)
+++ trunk/LayoutTests/imported/w3c/web-platform-tests/css/css-text/text-justify/text-justify-inter-character-001.html 2022-05-31 13:24:31 UTC (rev 295049)
@@ -0,0 +1,28 @@
+<!DOCTYPE html>
+<html>
+<head>
+<meta charset="utf-8">
+<title>CSS Text 7.4. Justification Method: text-justify: inter-character</title>
+<link rel="author" title="Chun-Min (Jeremy) Chen" href=""
+<link rel="author" title="Mozilla" href=""
+<link rel="help" href=""
+<link rel='match' href=''>
+<meta name="assert" content="text-justify:inter-character means justification adjusts spacing between each pair of adjacent typographic character units.">
+<style type='text/css'>
+p {
+ font-size: 1.5em;
+ border: 1px solid black;
+ padding: 10px;
+ margin-right: 310px;
+}
+.test {
+ text-align-last: justify;
+ text-justify: inter-character;
+}
+</style>
+</head>
+<body>
+<p lang="en" class="test">XX</p>
+<p lang="ja" class="test">文字</p>
+</body>
+</html>
Added: trunk/LayoutTests/imported/w3c/web-platform-tests/css/css-text/text-justify/text-justify-inter-word-001-expected.html (0 => 295049)
--- trunk/LayoutTests/imported/w3c/web-platform-tests/css/css-text/text-justify/text-justify-inter-word-001-expected.html (rev 0)
+++ trunk/LayoutTests/imported/w3c/web-platform-tests/css/css-text/text-justify/text-justify-inter-word-001-expected.html 2022-05-31 13:24:31 UTC (rev 295049)
@@ -0,0 +1,25 @@
+<!DOCTYPE html>
+<html>
+<head>
+<meta charset="utf-8">
+<title>CSS Text 7.4. Justification Method: text-justify: inter-word</title>
+<link rel="author" title="Chun-Min (Jeremy) Chen" href=""
+<link rel="author" title="Mozilla" href=""
+<style type='text/css'>
+p {
+ font-size: 1.5em;
+ border: 1px solid black;
+ padding: 10px;
+ margin-right: 310px;
+}
+.right {
+ float: right;
+}
+</style>
+</head>
+<body>
+<p lang="en">Latin<span class="right">text</span></p>
+<p lang="ja">日本<span class="right">文字</span></p>
+<p lang="th">อักษรไทย<span class="right">อักษรไทย</span></p>
+</body>
+</html>
Added: trunk/LayoutTests/imported/w3c/web-platform-tests/css/css-text/text-justify/text-justify-inter-word-001-ref.html (0 => 295049)
--- trunk/LayoutTests/imported/w3c/web-platform-tests/css/css-text/text-justify/text-justify-inter-word-001-ref.html (rev 0)
+++ trunk/LayoutTests/imported/w3c/web-platform-tests/css/css-text/text-justify/text-justify-inter-word-001-ref.html 2022-05-31 13:24:31 UTC (rev 295049)
@@ -0,0 +1,25 @@
+<!DOCTYPE html>
+<html>
+<head>
+<meta charset="utf-8">
+<title>CSS Text 7.4. Justification Method: text-justify: inter-word</title>
+<link rel="author" title="Chun-Min (Jeremy) Chen" href=""
+<link rel="author" title="Mozilla" href=""
+<style type='text/css'>
+p {
+ font-size: 1.5em;
+ border: 1px solid black;
+ padding: 10px;
+ margin-right: 310px;
+}
+.right {
+ float: right;
+}
+</style>
+</head>
+<body>
+<p lang="en">Latin<span class="right">text</span></p>
+<p lang="ja">日本<span class="right">文字</span></p>
+<p lang="th">อักษรไทย<span class="right">อักษรไทย</span></p>
+</body>
+</html>
Added: trunk/LayoutTests/imported/w3c/web-platform-tests/css/css-text/text-justify/text-justify-inter-word-001.html (0 => 295049)
--- trunk/LayoutTests/imported/w3c/web-platform-tests/css/css-text/text-justify/text-justify-inter-word-001.html (rev 0)
+++ trunk/LayoutTests/imported/w3c/web-platform-tests/css/css-text/text-justify/text-justify-inter-word-001.html 2022-05-31 13:24:31 UTC (rev 295049)
@@ -0,0 +1,29 @@
+<!DOCTYPE html>
+<html>
+<head>
+<meta charset="utf-8">
+<title>CSS Text 7.4. Justification Method: text-justify: inter-word</title>
+<link rel="author" title="Chun-Min (Jeremy) Chen" href=""
+<link rel="author" title="Mozilla" href=""
+<link rel="help" href=""
+<link rel='match' href=''>
+<meta name="assert" content="text-justify:inter-word means justification adjusts spacing at word separators only.">
+<style type='text/css'>
+p {
+ font-size: 1.5em;
+ border: 1px solid black;
+ padding: 10px;
+ margin-right: 310px;
+}
+.test {
+ text-align-last: justify;
+ text-justify: inter-word;
+}
+</style>
+</head>
+<body>
+<p lang="en" class="test">Latin text</p>
+<p lang="ja" class="test">日本 文字</p>
+<p lang="th" class="test">อักษรไทย อักษรไทย</p>
+</body>
+</html>
Added: trunk/LayoutTests/imported/w3c/web-platform-tests/css/css-text/text-justify/text-justify-interpolation-expected.txt (0 => 295049)
--- trunk/LayoutTests/imported/w3c/web-platform-tests/css/css-text/text-justify/text-justify-interpolation-expected.txt (rev 0)
+++ trunk/LayoutTests/imported/w3c/web-platform-tests/css/css-text/text-justify/text-justify-interpolation-expected.txt 2022-05-31 13:24:31 UTC (rev 295049)
@@ -0,0 +1,142 @@
+
+PASS CSS Transitions: property <text-justify> from [auto] to [inter-word] at (-0.3) should be [inter-word]
+PASS CSS Transitions: property <text-justify> from [auto] to [inter-word] at (0) should be [inter-word]
+PASS CSS Transitions: property <text-justify> from [auto] to [inter-word] at (0.3) should be [inter-word]
+PASS CSS Transitions: property <text-justify> from [auto] to [inter-word] at (0.5) should be [inter-word]
+PASS CSS Transitions: property <text-justify> from [auto] to [inter-word] at (0.6) should be [inter-word]
+PASS CSS Transitions: property <text-justify> from [auto] to [inter-word] at (1) should be [inter-word]
+PASS CSS Transitions: property <text-justify> from [auto] to [inter-word] at (1.5) should be [inter-word]
+PASS CSS Transitions with transition: all: property <text-justify> from [auto] to [inter-word] at (-0.3) should be [inter-word]
+PASS CSS Transitions with transition: all: property <text-justify> from [auto] to [inter-word] at (0) should be [inter-word]
+PASS CSS Transitions with transition: all: property <text-justify> from [auto] to [inter-word] at (0.3) should be [inter-word]
+PASS CSS Transitions with transition: all: property <text-justify> from [auto] to [inter-word] at (0.5) should be [inter-word]
+PASS CSS Transitions with transition: all: property <text-justify> from [auto] to [inter-word] at (0.6) should be [inter-word]
+PASS CSS Transitions with transition: all: property <text-justify> from [auto] to [inter-word] at (1) should be [inter-word]
+PASS CSS Transitions with transition: all: property <text-justify> from [auto] to [inter-word] at (1.5) should be [inter-word]
+PASS CSS Animations: property <text-justify> from [auto] to [inter-word] at (-0.3) should be [auto]
+PASS CSS Animations: property <text-justify> from [auto] to [inter-word] at (0) should be [auto]
+PASS CSS Animations: property <text-justify> from [auto] to [inter-word] at (0.3) should be [auto]
+FAIL CSS Animations: property <text-justify> from [auto] to [inter-word] at (0.5) should be [inter-word] assert_equals: expected "inter - word " but got "auto "
+FAIL CSS Animations: property <text-justify> from [auto] to [inter-word] at (0.6) should be [inter-word] assert_equals: expected "inter - word " but got "auto "
+FAIL CSS Animations: property <text-justify> from [auto] to [inter-word] at (1) should be [inter-word] assert_equals: expected "inter - word " but got "auto "
+FAIL CSS Animations: property <text-justify> from [auto] to [inter-word] at (1.5) should be [inter-word] assert_equals: expected "inter - word " but got "auto "
+PASS Web Animations: property <text-justify> from [auto] to [inter-word] at (-0.3) should be [auto]
+PASS Web Animations: property <text-justify> from [auto] to [inter-word] at (0) should be [auto]
+PASS Web Animations: property <text-justify> from [auto] to [inter-word] at (0.3) should be [auto]
+FAIL Web Animations: property <text-justify> from [auto] to [inter-word] at (0.5) should be [inter-word] assert_equals: expected "inter - word " but got "auto "
+FAIL Web Animations: property <text-justify> from [auto] to [inter-word] at (0.6) should be [inter-word] assert_equals: expected "inter - word " but got "auto "
+FAIL Web Animations: property <text-justify> from [auto] to [inter-word] at (1) should be [inter-word] assert_equals: expected "inter - word " but got "auto "
+FAIL Web Animations: property <text-justify> from [auto] to [inter-word] at (1.5) should be [inter-word] assert_equals: expected "inter - word " but got "auto "
+PASS CSS Transitions: property <text-justify> from [auto] to [inter-character] at (-0.3) should be [inter-character]
+PASS CSS Transitions: property <text-justify> from [auto] to [inter-character] at (0) should be [inter-character]
+PASS CSS Transitions: property <text-justify> from [auto] to [inter-character] at (0.3) should be [inter-character]
+PASS CSS Transitions: property <text-justify> from [auto] to [inter-character] at (0.5) should be [inter-character]
+PASS CSS Transitions: property <text-justify> from [auto] to [inter-character] at (0.6) should be [inter-character]
+PASS CSS Transitions: property <text-justify> from [auto] to [inter-character] at (1) should be [inter-character]
+PASS CSS Transitions: property <text-justify> from [auto] to [inter-character] at (1.5) should be [inter-character]
+PASS CSS Transitions with transition: all: property <text-justify> from [auto] to [inter-character] at (-0.3) should be [inter-character]
+PASS CSS Transitions with transition: all: property <text-justify> from [auto] to [inter-character] at (0) should be [inter-character]
+PASS CSS Transitions with transition: all: property <text-justify> from [auto] to [inter-character] at (0.3) should be [inter-character]
+PASS CSS Transitions with transition: all: property <text-justify> from [auto] to [inter-character] at (0.5) should be [inter-character]
+PASS CSS Transitions with transition: all: property <text-justify> from [auto] to [inter-character] at (0.6) should be [inter-character]
+PASS CSS Transitions with transition: all: property <text-justify> from [auto] to [inter-character] at (1) should be [inter-character]
+PASS CSS Transitions with transition: all: property <text-justify> from [auto] to [inter-character] at (1.5) should be [inter-character]
+PASS CSS Animations: property <text-justify> from [auto] to [inter-character] at (-0.3) should be [auto]
+PASS CSS Animations: property <text-justify> from [auto] to [inter-character] at (0) should be [auto]
+PASS CSS Animations: property <text-justify> from [auto] to [inter-character] at (0.3) should be [auto]
+FAIL CSS Animations: property <text-justify> from [auto] to [inter-character] at (0.5) should be [inter-character] assert_equals: expected "inter - character " but got "auto "
+FAIL CSS Animations: property <text-justify> from [auto] to [inter-character] at (0.6) should be [inter-character] assert_equals: expected "inter - character " but got "auto "
+FAIL CSS Animations: property <text-justify> from [auto] to [inter-character] at (1) should be [inter-character] assert_equals: expected "inter - character " but got "auto "
+FAIL CSS Animations: property <text-justify> from [auto] to [inter-character] at (1.5) should be [inter-character] assert_equals: expected "inter - character " but got "auto "
+PASS Web Animations: property <text-justify> from [auto] to [inter-character] at (-0.3) should be [auto]
+PASS Web Animations: property <text-justify> from [auto] to [inter-character] at (0) should be [auto]
+PASS Web Animations: property <text-justify> from [auto] to [inter-character] at (0.3) should be [auto]
+FAIL Web Animations: property <text-justify> from [auto] to [inter-character] at (0.5) should be [inter-character] assert_equals: expected "inter - character " but got "auto "
+FAIL Web Animations: property <text-justify> from [auto] to [inter-character] at (0.6) should be [inter-character] assert_equals: expected "inter - character " but got "auto "
+FAIL Web Animations: property <text-justify> from [auto] to [inter-character] at (1) should be [inter-character] assert_equals: expected "inter - character " but got "auto "
+FAIL Web Animations: property <text-justify> from [auto] to [inter-character] at (1.5) should be [inter-character] assert_equals: expected "inter - character " but got "auto "
+PASS CSS Transitions: property <text-justify> from [inter-character] to [distribute] at (-0.3) should be [distribute]
+PASS CSS Transitions: property <text-justify> from [inter-character] to [distribute] at (0) should be [distribute]
+PASS CSS Transitions: property <text-justify> from [inter-character] to [distribute] at (0.3) should be [distribute]
+PASS CSS Transitions: property <text-justify> from [inter-character] to [distribute] at (0.5) should be [distribute]
+PASS CSS Transitions: property <text-justify> from [inter-character] to [distribute] at (0.6) should be [distribute]
+PASS CSS Transitions: property <text-justify> from [inter-character] to [distribute] at (1) should be [distribute]
+PASS CSS Transitions: property <text-justify> from [inter-character] to [distribute] at (1.5) should be [distribute]
+PASS CSS Transitions with transition: all: property <text-justify> from [inter-character] to [distribute] at (-0.3) should be [distribute]
+PASS CSS Transitions with transition: all: property <text-justify> from [inter-character] to [distribute] at (0) should be [distribute]
+PASS CSS Transitions with transition: all: property <text-justify> from [inter-character] to [distribute] at (0.3) should be [distribute]
+PASS CSS Transitions with transition: all: property <text-justify> from [inter-character] to [distribute] at (0.5) should be [distribute]
+PASS CSS Transitions with transition: all: property <text-justify> from [inter-character] to [distribute] at (0.6) should be [distribute]
+PASS CSS Transitions with transition: all: property <text-justify> from [inter-character] to [distribute] at (1) should be [distribute]
+PASS CSS Transitions with transition: all: property <text-justify> from [inter-character] to [distribute] at (1.5) should be [distribute]
+FAIL CSS Animations: property <text-justify> from [inter-character] to [distribute] at (-0.3) should be [inter-character] assert_equals: expected "inter - character " but got "auto "
+FAIL CSS Animations: property <text-justify> from [inter-character] to [distribute] at (0) should be [inter-character] assert_equals: expected "inter - character " but got "auto "
+FAIL CSS Animations: property <text-justify> from [inter-character] to [distribute] at (0.3) should be [inter-character] assert_equals: expected "inter - character " but got "auto "
+FAIL CSS Animations: property <text-justify> from [inter-character] to [distribute] at (0.5) should be [distribute] assert_equals: expected "inter - character " but got "auto "
+FAIL CSS Animations: property <text-justify> from [inter-character] to [distribute] at (0.6) should be [distribute] assert_equals: expected "inter - character " but got "auto "
+FAIL CSS Animations: property <text-justify> from [inter-character] to [distribute] at (1) should be [distribute] assert_equals: expected "inter - character " but got "auto "
+FAIL CSS Animations: property <text-justify> from [inter-character] to [distribute] at (1.5) should be [distribute] assert_equals: expected "inter - character " but got "auto "
+FAIL Web Animations: property <text-justify> from [inter-character] to [distribute] at (-0.3) should be [inter-character] assert_equals: expected "inter - character " but got "auto "
+FAIL Web Animations: property <text-justify> from [inter-character] to [distribute] at (0) should be [inter-character] assert_equals: expected "inter - character " but got "auto "
+FAIL Web Animations: property <text-justify> from [inter-character] to [distribute] at (0.3) should be [inter-character] assert_equals: expected "inter - character " but got "auto "
+FAIL Web Animations: property <text-justify> from [inter-character] to [distribute] at (0.5) should be [distribute] assert_equals: expected "inter - character " but got "auto "
+FAIL Web Animations: property <text-justify> from [inter-character] to [distribute] at (0.6) should be [distribute] assert_equals: expected "inter - character " but got "auto "
+FAIL Web Animations: property <text-justify> from [inter-character] to [distribute] at (1) should be [distribute] assert_equals: expected "inter - character " but got "auto "
+FAIL Web Animations: property <text-justify> from [inter-character] to [distribute] at (1.5) should be [distribute] assert_equals: expected "inter - character " but got "auto "
+PASS CSS Transitions: property <text-justify> from [inter-word] to [distribute] at (-0.3) should be [distribute]
+PASS CSS Transitions: property <text-justify> from [inter-word] to [distribute] at (0) should be [distribute]
+PASS CSS Transitions: property <text-justify> from [inter-word] to [distribute] at (0.3) should be [distribute]
+PASS CSS Transitions: property <text-justify> from [inter-word] to [distribute] at (0.5) should be [distribute]
+PASS CSS Transitions: property <text-justify> from [inter-word] to [distribute] at (0.6) should be [distribute]
+PASS CSS Transitions: property <text-justify> from [inter-word] to [distribute] at (1) should be [distribute]
+PASS CSS Transitions: property <text-justify> from [inter-word] to [distribute] at (1.5) should be [distribute]
+PASS CSS Transitions with transition: all: property <text-justify> from [inter-word] to [distribute] at (-0.3) should be [distribute]
+PASS CSS Transitions with transition: all: property <text-justify> from [inter-word] to [distribute] at (0) should be [distribute]
+PASS CSS Transitions with transition: all: property <text-justify> from [inter-word] to [distribute] at (0.3) should be [distribute]
+PASS CSS Transitions with transition: all: property <text-justify> from [inter-word] to [distribute] at (0.5) should be [distribute]
+PASS CSS Transitions with transition: all: property <text-justify> from [inter-word] to [distribute] at (0.6) should be [distribute]
+PASS CSS Transitions with transition: all: property <text-justify> from [inter-word] to [distribute] at (1) should be [distribute]
+PASS CSS Transitions with transition: all: property <text-justify> from [inter-word] to [distribute] at (1.5) should be [distribute]
+FAIL CSS Animations: property <text-justify> from [inter-word] to [distribute] at (-0.3) should be [inter-word] assert_equals: expected "inter - word " but got "auto "
+FAIL CSS Animations: property <text-justify> from [inter-word] to [distribute] at (0) should be [inter-word] assert_equals: expected "inter - word " but got "auto "
+FAIL CSS Animations: property <text-justify> from [inter-word] to [distribute] at (0.3) should be [inter-word] assert_equals: expected "inter - word " but got "auto "
+FAIL CSS Animations: property <text-justify> from [inter-word] to [distribute] at (0.5) should be [distribute] assert_equals: expected "inter - character " but got "auto "
+FAIL CSS Animations: property <text-justify> from [inter-word] to [distribute] at (0.6) should be [distribute] assert_equals: expected "inter - character " but got "auto "
+FAIL CSS Animations: property <text-justify> from [inter-word] to [distribute] at (1) should be [distribute] assert_equals: expected "inter - character " but got "auto "
+FAIL CSS Animations: property <text-justify> from [inter-word] to [distribute] at (1.5) should be [distribute] assert_equals: expected "inter - character " but got "auto "
+FAIL Web Animations: property <text-justify> from [inter-word] to [distribute] at (-0.3) should be [inter-word] assert_equals: expected "inter - word " but got "auto "
+FAIL Web Animations: property <text-justify> from [inter-word] to [distribute] at (0) should be [inter-word] assert_equals: expected "inter - word " but got "auto "
+FAIL Web Animations: property <text-justify> from [inter-word] to [distribute] at (0.3) should be [inter-word] assert_equals: expected "inter - word " but got "auto "
+FAIL Web Animations: property <text-justify> from [inter-word] to [distribute] at (0.5) should be [distribute] assert_equals: expected "inter - character " but got "auto "
+FAIL Web Animations: property <text-justify> from [inter-word] to [distribute] at (0.6) should be [distribute] assert_equals: expected "inter - character " but got "auto "
+FAIL Web Animations: property <text-justify> from [inter-word] to [distribute] at (1) should be [distribute] assert_equals: expected "inter - character " but got "auto "
+FAIL Web Animations: property <text-justify> from [inter-word] to [distribute] at (1.5) should be [distribute] assert_equals: expected "inter - character " but got "auto "
+PASS CSS Transitions: property <text-justify> from [distribute] to [none] at (-0.3) should be [none]
+PASS CSS Transitions: property <text-justify> from [distribute] to [none] at (0) should be [none]
+PASS CSS Transitions: property <text-justify> from [distribute] to [none] at (0.3) should be [none]
+PASS CSS Transitions: property <text-justify> from [distribute] to [none] at (0.5) should be [none]
+PASS CSS Transitions: property <text-justify> from [distribute] to [none] at (0.6) should be [none]
+PASS CSS Transitions: property <text-justify> from [distribute] to [none] at (1) should be [none]
+PASS CSS Transitions: property <text-justify> from [distribute] to [none] at (1.5) should be [none]
+PASS CSS Transitions with transition: all: property <text-justify> from [distribute] to [none] at (-0.3) should be [none]
+PASS CSS Transitions with transition: all: property <text-justify> from [distribute] to [none] at (0) should be [none]
+PASS CSS Transitions with transition: all: property <text-justify> from [distribute] to [none] at (0.3) should be [none]
+PASS CSS Transitions with transition: all: property <text-justify> from [distribute] to [none] at (0.5) should be [none]
+PASS CSS Transitions with transition: all: property <text-justify> from [distribute] to [none] at (0.6) should be [none]
+PASS CSS Transitions with transition: all: property <text-justify> from [distribute] to [none] at (1) should be [none]
+PASS CSS Transitions with transition: all: property <text-justify> from [distribute] to [none] at (1.5) should be [none]
+FAIL CSS Animations: property <text-justify> from [distribute] to [none] at (-0.3) should be [distribute] assert_equals: expected "inter - character " but got "auto "
+FAIL CSS Animations: property <text-justify> from [distribute] to [none] at (0) should be [distribute] assert_equals: expected "inter - character " but got "auto "
+FAIL CSS Animations: property <text-justify> from [distribute] to [none] at (0.3) should be [distribute] assert_equals: expected "inter - character " but got "auto "
+FAIL CSS Animations: property <text-justify> from [distribute] to [none] at (0.5) should be [none] assert_equals: expected "none " but got "auto "
+FAIL CSS Animations: property <text-justify> from [distribute] to [none] at (0.6) should be [none] assert_equals: expected "none " but got "auto "
+FAIL CSS Animations: property <text-justify> from [distribute] to [none] at (1) should be [none] assert_equals: expected "none " but got "auto "
+FAIL CSS Animations: property <text-justify> from [distribute] to [none] at (1.5) should be [none] assert_equals: expected "none " but got "auto "
+FAIL Web Animations: property <text-justify> from [distribute] to [none] at (-0.3) should be [distribute] assert_equals: expected "inter - character " but got "auto "
+FAIL Web Animations: property <text-justify> from [distribute] to [none] at (0) should be [distribute] assert_equals: expected "inter - character " but got "auto "
+FAIL Web Animations: property <text-justify> from [distribute] to [none] at (0.3) should be [distribute] assert_equals: expected "inter - character " but got "auto "
+FAIL Web Animations: property <text-justify> from [distribute] to [none] at (0.5) should be [none] assert_equals: expected "none " but got "auto "
+FAIL Web Animations: property <text-justify> from [distribute] to [none] at (0.6) should be [none] assert_equals: expected "none " but got "auto "
+FAIL Web Animations: property <text-justify> from [distribute] to [none] at (1) should be [none] assert_equals: expected "none " but got "auto "
+FAIL Web Animations: property <text-justify> from [distribute] to [none] at (1.5) should be [none] assert_equals: expected "none " but got "auto "
+
Added: trunk/LayoutTests/imported/w3c/web-platform-tests/css/css-text/text-justify/text-justify-interpolation.html (0 => 295049)
--- trunk/LayoutTests/imported/w3c/web-platform-tests/css/css-text/text-justify/text-justify-interpolation.html (rev 0)
+++ trunk/LayoutTests/imported/w3c/web-platform-tests/css/css-text/text-justify/text-justify-interpolation.html 2022-05-31 13:24:31 UTC (rev 295049)
@@ -0,0 +1,46 @@
+<!DOCTYPE html>
+<html>
+ <head>
+ <meta charset="utf-8">
+ <title>text-justify interpolation</title>
+ <link rel="author" title="Kiet Ho" href=""
+ <link rel="help" href=""
+ <meta name="assert" content="text-justify supports discrete animation">
+ <script src=""
+ <script src=""
+ <script src=""
+ </head>
+ <body>
+ <script>
+ test_no_interpolation({
+ property: 'text-justify',
+ from: 'auto',
+ to: 'inter-word'
+ });
+
+ test_no_interpolation({
+ property: 'text-justify',
+ from: 'auto',
+ to: 'inter-character'
+ });
+
+ test_no_interpolation({
+ property: 'text-justify',
+ from: 'inter-character',
+ to: 'distribute'
+ });
+
+ test_no_interpolation({
+ property: 'text-justify',
+ from: 'inter-word',
+ to: 'distribute'
+ });
+
+ test_no_interpolation({
+ property: 'text-justify',
+ from: 'distribute',
+ to: 'none'
+ });
+ </script>
+ </body>
+</html>
Added: trunk/LayoutTests/imported/w3c/web-platform-tests/css/css-text/text-justify/text-justify-none-001-expected.html (0 => 295049)
--- trunk/LayoutTests/imported/w3c/web-platform-tests/css/css-text/text-justify/text-justify-none-001-expected.html (rev 0)
+++ trunk/LayoutTests/imported/w3c/web-platform-tests/css/css-text/text-justify/text-justify-none-001-expected.html 2022-05-31 13:24:31 UTC (rev 295049)
@@ -0,0 +1,22 @@
+<!DOCTYPE html>
+<html>
+<head>
+<meta charset="utf-8">
+<title>CSS Text 7.4. Justification Method: text-justify: none</title>
+<link rel="author" title="Chun-Min (Jeremy) Chen" href=""
+<link rel="author" title="Mozilla" href=""
+<style type='text/css'>
+p {
+ font-size: 1.5em;
+ border: 1px solid black;
+ padding: 10px;
+ margin-right: 310px;
+}
+</style>
+</head>
+<body>
+<p lang="en">Latin text</p>
+<p lang="ja">日本 文字</p>
+<p lang="th">อักษรไทย อักษรไทย</p>
+</body>
+</html>
Added: trunk/LayoutTests/imported/w3c/web-platform-tests/css/css-text/text-justify/text-justify-none-001-ref.html (0 => 295049)
--- trunk/LayoutTests/imported/w3c/web-platform-tests/css/css-text/text-justify/text-justify-none-001-ref.html (rev 0)
+++ trunk/LayoutTests/imported/w3c/web-platform-tests/css/css-text/text-justify/text-justify-none-001-ref.html 2022-05-31 13:24:31 UTC (rev 295049)
@@ -0,0 +1,22 @@
+<!DOCTYPE html>
+<html>
+<head>
+<meta charset="utf-8">
+<title>CSS Text 7.4. Justification Method: text-justify: none</title>
+<link rel="author" title="Chun-Min (Jeremy) Chen" href=""
+<link rel="author" title="Mozilla" href=""
+<style type='text/css'>
+p {
+ font-size: 1.5em;
+ border: 1px solid black;
+ padding: 10px;
+ margin-right: 310px;
+}
+</style>
+</head>
+<body>
+<p lang="en">Latin text</p>
+<p lang="ja">日本 文字</p>
+<p lang="th">อักษรไทย อักษรไทย</p>
+</body>
+</html>
Added: trunk/LayoutTests/imported/w3c/web-platform-tests/css/css-text/text-justify/text-justify-none-001.html (0 => 295049)
--- trunk/LayoutTests/imported/w3c/web-platform-tests/css/css-text/text-justify/text-justify-none-001.html (rev 0)
+++ trunk/LayoutTests/imported/w3c/web-platform-tests/css/css-text/text-justify/text-justify-none-001.html 2022-05-31 13:24:31 UTC (rev 295049)
@@ -0,0 +1,29 @@
+<!DOCTYPE html>
+<html>
+<head>
+<meta charset="utf-8">
+<title>CSS Text 7.4. Justification Method: text-justify: none</title>
+<link rel="author" title="Chun-Min (Jeremy) Chen" href=""
+<link rel="author" title="Mozilla" href=""
+<link rel="help" href=""
+<link rel='match' href=''>
+<meta name="assert" content="text-justify:none means justification is disabled: there are no justification opportunities within the text.">
+<style type='text/css'>
+p {
+ font-size: 1.5em;
+ border: 1px solid black;
+ padding: 10px;
+ margin-right: 310px;
+}
+.test {
+ text-align-last: justify;
+ text-justify: none;
+}
+</style>
+</head>
+<body>
+<p lang="en" class="test">Latin text</p>
+<p lang="ja" class="test">日本 文字</p>
+<p lang="th" class="test">อักษรไทย อักษรไทย</p>
+</body>
+</html>
Modified: trunk/LayoutTests/imported/w3c/web-platform-tests/css/css-text/text-justify/w3c-import.log (295048 => 295049)
--- trunk/LayoutTests/imported/w3c/web-platform-tests/css/css-text/text-justify/w3c-import.log 2022-05-31 13:02:53 UTC (rev 295048)
+++ trunk/LayoutTests/imported/w3c/web-platform-tests/css/css-text/text-justify/w3c-import.log 2022-05-31 13:24:31 UTC (rev 295049)
@@ -9,11 +9,12 @@
------------------------------------------------------------------------
Properties requiring vendor prefixes:
-text-justify
+None
Property values requiring vendor prefixes:
None
------------------------------------------------------------------------
List of files:
+/LayoutTests/imported/w3c/web-platform-tests/css/css-text/text-justify/distribute-alias.tentative.html
/LayoutTests/imported/w3c/web-platform-tests/css/css-text/text-justify/text-justify-001-expected.html
/LayoutTests/imported/w3c/web-platform-tests/css/css-text/text-justify/text-justify-001.html
/LayoutTests/imported/w3c/web-platform-tests/css/css-text/text-justify/text-justify-002.html
@@ -22,3 +23,27 @@
/LayoutTests/imported/w3c/web-platform-tests/css/css-text/text-justify/text-justify-005.html
/LayoutTests/imported/w3c/web-platform-tests/css/css-text/text-justify/text-justify-006-expected.html
/LayoutTests/imported/w3c/web-platform-tests/css/css-text/text-justify/text-justify-006.html
+/LayoutTests/imported/w3c/web-platform-tests/css/css-text/text-justify/text-justify-and-trailing-spaces-001-expected.html
+/LayoutTests/imported/w3c/web-platform-tests/css/css-text/text-justify/text-justify-and-trailing-spaces-001.html
+/LayoutTests/imported/w3c/web-platform-tests/css/css-text/text-justify/text-justify-and-trailing-spaces-002-expected.html
+/LayoutTests/imported/w3c/web-platform-tests/css/css-text/text-justify/text-justify-and-trailing-spaces-002.html
+/LayoutTests/imported/w3c/web-platform-tests/css/css-text/text-justify/text-justify-and-trailing-spaces-003-expected.html
+/LayoutTests/imported/w3c/web-platform-tests/css/css-text/text-justify/text-justify-and-trailing-spaces-003.html
+/LayoutTests/imported/w3c/web-platform-tests/css/css-text/text-justify/text-justify-and-trailing-spaces-004-expected.html
+/LayoutTests/imported/w3c/web-platform-tests/css/css-text/text-justify/text-justify-and-trailing-spaces-004.html
+/LayoutTests/imported/w3c/web-platform-tests/css/css-text/text-justify/text-justify-and-trailing-spaces-005-expected.html
+/LayoutTests/imported/w3c/web-platform-tests/css/css-text/text-justify/text-justify-and-trailing-spaces-005.html
+/LayoutTests/imported/w3c/web-platform-tests/css/css-text/text-justify/text-justify-and-trailing-spaces-006-expected.html
+/LayoutTests/imported/w3c/web-platform-tests/css/css-text/text-justify/text-justify-and-trailing-spaces-006.html
+/LayoutTests/imported/w3c/web-platform-tests/css/css-text/text-justify/text-justify-distribute-001-expected.html
+/LayoutTests/imported/w3c/web-platform-tests/css/css-text/text-justify/text-justify-distribute-001.html
+/LayoutTests/imported/w3c/web-platform-tests/css/css-text/text-justify/text-justify-inter-character-001-expected.html
+/LayoutTests/imported/w3c/web-platform-tests/css/css-text/text-justify/text-justify-inter-character-001-ref.html
+/LayoutTests/imported/w3c/web-platform-tests/css/css-text/text-justify/text-justify-inter-character-001.html
+/LayoutTests/imported/w3c/web-platform-tests/css/css-text/text-justify/text-justify-inter-word-001-expected.html
+/LayoutTests/imported/w3c/web-platform-tests/css/css-text/text-justify/text-justify-inter-word-001-ref.html
+/LayoutTests/imported/w3c/web-platform-tests/css/css-text/text-justify/text-justify-inter-word-001.html
+/LayoutTests/imported/w3c/web-platform-tests/css/css-text/text-justify/text-justify-interpolation.html
+/LayoutTests/imported/w3c/web-platform-tests/css/css-text/text-justify/text-justify-none-001-expected.html
+/LayoutTests/imported/w3c/web-platform-tests/css/css-text/text-justify/text-justify-none-001-ref.html
+/LayoutTests/imported/w3c/web-platform-tests/css/css-text/text-justify/text-justify-none-001.html
Modified: trunk/LayoutTests/platform/gtk/imported/w3c/web-platform-tests/css/css-cascade/all-prop-initial-xml-expected.txt (295048 => 295049)
--- trunk/LayoutTests/platform/gtk/imported/w3c/web-platform-tests/css/css-cascade/all-prop-initial-xml-expected.txt 2022-05-31 13:02:53 UTC (rev 295048)
+++ trunk/LayoutTests/platform/gtk/imported/w3c/web-platform-tests/css/css-cascade/all-prop-initial-xml-expected.txt 2022-05-31 13:24:31 UTC (rev 295049)
@@ -301,6 +301,7 @@
PASS text-emphasis-position
PASS text-emphasis-style
PASS text-indent
+PASS text-justify
PASS text-orientation
PASS text-overflow
PASS text-rendering
@@ -386,7 +387,6 @@
PASS -webkit-tap-highlight-color
PASS -webkit-text-combine
PASS -webkit-text-fill-color
-PASS -webkit-text-justify
PASS -webkit-text-security
PASS -webkit-text-stroke-color
PASS -webkit-text-stroke-width
Modified: trunk/LayoutTests/platform/mac-wk1/imported/w3c/web-platform-tests/css/css-cascade/all-prop-revert-layer-expected.txt (295048 => 295049)
--- trunk/LayoutTests/platform/mac-wk1/imported/w3c/web-platform-tests/css/css-cascade/all-prop-revert-layer-expected.txt 2022-05-31 13:02:53 UTC (rev 295048)
+++ trunk/LayoutTests/platform/mac-wk1/imported/w3c/web-platform-tests/css/css-cascade/all-prop-revert-layer-expected.txt 2022-05-31 13:24:31 UTC (rev 295049)
@@ -296,6 +296,7 @@
PASS text-emphasis-position
PASS text-emphasis-style
PASS text-indent
+PASS text-justify
PASS text-orientation
PASS text-overflow
PASS text-rendering
Modified: trunk/LayoutTests/platform/wpe/imported/w3c/web-platform-tests/css/css-cascade/all-prop-initial-xml-expected.txt (295048 => 295049)
--- trunk/LayoutTests/platform/wpe/imported/w3c/web-platform-tests/css/css-cascade/all-prop-initial-xml-expected.txt 2022-05-31 13:02:53 UTC (rev 295048)
+++ trunk/LayoutTests/platform/wpe/imported/w3c/web-platform-tests/css/css-cascade/all-prop-initial-xml-expected.txt 2022-05-31 13:24:31 UTC (rev 295049)
@@ -301,6 +301,7 @@
PASS text-emphasis-position
PASS text-emphasis-style
PASS text-indent
+PASS text-justify
PASS text-orientation
PASS text-overflow
PASS text-rendering
@@ -385,7 +386,6 @@
PASS -webkit-tap-highlight-color
PASS -webkit-text-combine
PASS -webkit-text-fill-color
-PASS -webkit-text-justify
PASS -webkit-text-security
PASS -webkit-text-stroke-color
PASS -webkit-text-stroke-width
Modified: trunk/Source/WebCore/animation/CSSPropertyAnimation.cpp (295048 => 295049)
--- trunk/Source/WebCore/animation/CSSPropertyAnimation.cpp 2022-05-31 13:02:53 UTC (rev 295048)
+++ trunk/Source/WebCore/animation/CSSPropertyAnimation.cpp 2022-05-31 13:24:31 UTC (rev 295049)
@@ -3654,7 +3654,7 @@
case CSSPropertyUserSelect:
// TODO (webkit.org/b/240591): Implement animation support for the two following properties.
case CSSPropertyTextAlignLast:
- case CSSPropertyWebkitTextJustify:
+ case CSSPropertyTextJustify:
continue;
default:
auto resolvedProperty = CSSProperty::resolveDirectionAwareProperty(property, RenderStyle::initialDirection(), RenderStyle::initialWritingMode());
Modified: trunk/Source/WebCore/css/CSSComputedStyleDeclaration.cpp (295048 => 295049)
--- trunk/Source/WebCore/css/CSSComputedStyleDeclaration.cpp 2022-05-31 13:02:53 UTC (rev 295048)
+++ trunk/Source/WebCore/css/CSSComputedStyleDeclaration.cpp 2022-05-31 13:24:31 UTC (rev 295049)
@@ -3561,7 +3561,7 @@
return cssValuePool.createValue(style.textAlignLast());
case CSSPropertyTextDecoration:
return renderTextDecorationLineFlagsToCSSValue(style.textDecorationLine());
- case CSSPropertyWebkitTextJustify:
+ case CSSPropertyTextJustify:
if (!m_element->document().settings().cssTextJustifyEnabled())
return nullptr;
return cssValuePool.createValue(style.textJustify());
Modified: trunk/Source/WebCore/css/CSSPrimitiveValueMappings.h (295048 => 295049)
--- trunk/Source/WebCore/css/CSSPrimitiveValueMappings.h 2022-05-31 13:02:53 UTC (rev 295048)
+++ trunk/Source/WebCore/css/CSSPrimitiveValueMappings.h 2022-05-31 13:24:31 UTC (rev 295049)
@@ -2283,8 +2283,8 @@
case TextJustify::InterWord:
m_value.valueID = CSSValueInterWord;
break;
- case TextJustify::Distribute:
- m_value.valueID = CSSValueDistribute;
+ case TextJustify::InterCharacter:
+ m_value.valueID = CSSValueInterCharacter;
break;
}
}
@@ -2300,8 +2300,9 @@
return TextJustify::None;
case CSSValueInterWord:
return TextJustify::InterWord;
+ case CSSValueInterCharacter:
case CSSValueDistribute:
- return TextJustify::Distribute;
+ return TextJustify::InterCharacter;
default:
break;
}
Modified: trunk/Source/WebCore/css/CSSProperties.json (295048 => 295049)
--- trunk/Source/WebCore/css/CSSProperties.json 2022-05-31 13:02:53 UTC (rev 295048)
+++ trunk/Source/WebCore/css/CSSProperties.json 2022-05-31 13:24:31 UTC (rev 295049)
@@ -4652,6 +4652,23 @@
"url": "https://www.w3.org/TR/CSS22/text.html#propdef-text-indent"
}
},
+ "text-justify": {
+ "inherited": true,
+ "values": [
+ "inter-word",
+ "inter-character",
+ "distribute",
+ "auto",
+ "none"
+ ],
+ "codegen-properties": {
+ "settings-flag": "cssTextJustifyEnabled"
+ },
+ "specification": {
+ "category": "css-text",
+ "url": "https://www.w3.org/TR/css-text-3/#text-justify"
+ }
+ },
"text-line-through": {
"codegen-properties": {
"skip-codegen": true
@@ -6848,25 +6865,6 @@
"url": "https://www.w3.org/TR/css-writing-modes-3/#propdef-direction"
}
},
- "-webkit-text-justify": {
- "inherited": true,
- "values": [
- "inter-word",
- "distribute",
- "auto",
- "none"
- ],
- "codegen-properties": {
- "settings-flag": "cssTextJustifyEnabled"
- },
- "status": {
- "status": "experimental"
- },
- "specification": {
- "category": "css-text",
- "url": "https://www.w3.org/TR/css-text-3/#text-justify"
- }
- },
"-webkit-text-decoration": {
"codegen-properties": {
"longhands": [
Modified: trunk/Source/WebCore/css/StyleProperties.cpp (295048 => 295049)
--- trunk/Source/WebCore/css/StyleProperties.cpp 2022-05-31 13:02:53 UTC (rev 295048)
+++ trunk/Source/WebCore/css/StyleProperties.cpp 2022-05-31 13:24:31 UTC (rev 295049)
@@ -1802,7 +1802,7 @@
CSSPropertyPageBreakInside,
CSSPropertyTextAlign,
CSSPropertyTextAlignLast,
- CSSPropertyWebkitTextJustify,
+ CSSPropertyTextJustify,
CSSPropertyTextIndent,
CSSPropertyWidows
};
Modified: trunk/Source/WebCore/css/parser/CSSParserContext.cpp (295048 => 295049)
--- trunk/Source/WebCore/css/parser/CSSParserContext.cpp 2022-05-31 13:02:53 UTC (rev 295048)
+++ trunk/Source/WebCore/css/parser/CSSParserContext.cpp 2022-05-31 13:24:31 UTC (rev 295049)
@@ -284,7 +284,7 @@
return !motionPathEnabled;
case CSSPropertyTextAlignLast:
return !cssTextAlignLastEnabled;
- case CSSPropertyWebkitTextJustify:
+ case CSSPropertyTextJustify:
return !cssTextJustifyEnabled;
default:
return false;
Modified: trunk/Source/WebCore/css/parser/CSSParserFastPaths.cpp (295048 => 295049)
--- trunk/Source/WebCore/css/parser/CSSParserFastPaths.cpp 2022-05-31 13:02:53 UTC (rev 295048)
+++ trunk/Source/WebCore/css/parser/CSSParserFastPaths.cpp 2022-05-31 13:24:31 UTC (rev 295049)
@@ -724,9 +724,9 @@
case CSSPropertyTextDecorationStyle:
// solid | double | dotted | dashed | wavy
return valueID == CSSValueSolid || valueID == CSSValueDouble || valueID == CSSValueDotted || valueID == CSSValueDashed || valueID == CSSValueWavy;
- case CSSPropertyWebkitTextJustify:
- // auto | none | inter-word | distribute
- return valueID == CSSValueInterWord || valueID == CSSValueDistribute || valueID == CSSValueAuto || valueID == CSSValueNone;
+ case CSSPropertyTextJustify:
+ // auto | none | inter-word | inter-character | distribute
+ return valueID == CSSValueInterWord || valueID == CSSValueInterCharacter || valueID == CSSValueDistribute || valueID == CSSValueAuto || valueID == CSSValueNone;
case CSSPropertyTextOrientation:
// mixed | upright | sideways
return valueID == CSSValueMixed || valueID == CSSValueUpright || valueID == CSSValueSideways;
@@ -962,7 +962,7 @@
case CSSPropertyTableLayout:
case CSSPropertyTextAlign:
case CSSPropertyTextAlignLast:
- case CSSPropertyWebkitTextJustify:
+ case CSSPropertyTextJustify:
case CSSPropertyTextOrientation:
case CSSPropertyTextOverflow:
case CSSPropertyTextRendering:
Modified: trunk/Source/WebCore/rendering/LegacyLineLayout.cpp (295048 => 295049)
--- trunk/Source/WebCore/rendering/LegacyLineLayout.cpp 2022-05-31 13:02:53 UTC (rev 295048)
+++ trunk/Source/WebCore/rendering/LegacyLineLayout.cpp 2022-05-31 13:24:31 UTC (rev 295049)
@@ -385,7 +385,7 @@
case TextAlignLast::Justify:
return TextAlignMode::Justify;
case TextAlignLast::Auto:
- if (textJustify == TextJustify::Distribute)
+ if (textJustify == TextJustify::InterCharacter)
return TextAlignMode::Justify;
return TextAlignMode::Start;
}
Modified: trunk/Source/WebCore/rendering/style/RenderStyleConstants.h (295048 => 295049)
--- trunk/Source/WebCore/rendering/style/RenderStyleConstants.h 2022-05-31 13:02:53 UTC (rev 295048)
+++ trunk/Source/WebCore/rendering/style/RenderStyleConstants.h 2022-05-31 13:24:31 UTC (rev 295049)
@@ -766,7 +766,7 @@
Auto,
None,
InterWord,
- Distribute
+ InterCharacter
};
enum class TextDecorationSkipInk : uint8_t {
Modified: trunk/Source/WebInspectorUI/UserInterface/Models/CSSKeywordCompletions.js (295048 => 295049)
--- trunk/Source/WebInspectorUI/UserInterface/Models/CSSKeywordCompletions.js 2022-05-31 13:02:53 UTC (rev 295048)
+++ trunk/Source/WebInspectorUI/UserInterface/Models/CSSKeywordCompletions.js 2022-05-31 13:24:31 UTC (rev 295049)
@@ -319,7 +319,6 @@
"-webkit-text-emphasis-position",
"-webkit-text-emphasis-style",
"-webkit-text-fill-color",
- "-webkit-text-justify",
"-webkit-text-orientation",
"-webkit-text-security",
"-webkit-text-size-adjust",
@@ -402,6 +401,7 @@
"text-align-last",
"text-anchor",
"text-indent",
+ "text-justify",
"text-rendering",
"text-shadow",
"text-transform",
@@ -1132,9 +1132,6 @@
"-webkit-text-decoration-style": [
"dotted", "dashed", "solid", "double", "wavy",
],
- "-webkit-text-justify": [
- "auto", "none", "inter-word", "inter-ideograph", "inter-cluster", "distribute", "kashida",
- ],
"-webkit-text-orientation": [
"sideways", "sideways-right", "upright", "mixed",
],
@@ -1342,6 +1339,9 @@
"text-anchor": [
"middle", "start", "end",
],
+ "text-justify": [
+ "auto", "none", "inter-word", "inter-character", "distribute",
+ ],
"text-line-through": [
"none", "dotted", "dashed", "solid", "double", "dot-dash", "dot-dot-dash", "wave", "continuous", "skip-white-space",
],