Diff
Modified: trunk/LayoutTests/fast/css3-text/css3-text-align-last/text-align-last-with-text-align-justify.html (295020 => 295021)
--- trunk/LayoutTests/fast/css3-text/css3-text-align-last/text-align-last-with-text-align-justify.html 2022-05-30 07:19:19 UTC (rev 295020)
+++ trunk/LayoutTests/fast/css3-text/css3-text-align-last/text-align-last-with-text-align-justify.html 2022-05-30 08:29:03 UTC (rev 295021)
@@ -14,22 +14,22 @@
<div id="tests">
text-align-last : start
- <div style='text-align: justify; -webkit-text-align-last: start;'>X X X XXX</div>
+ <div style='text-align: justify; text-align-last: start;'>X X X XXX</div>
text-align-last : end
- <div style='text-align: justify; -webkit-text-align-last: end;'>X X X XXX</div>
+ <div style='text-align: justify; text-align-last: end;'>X X X XXX</div>
text-align-last : left
- <div style='text-align: justify; -webkit-text-align-last: left;'>X X X XXX</div>
+ <div style='text-align: justify; text-align-last: left;'>X X X XXX</div>
text-align-last : right
- <div style='text-align: justify; -webkit-text-align-last: right;'>X X X XXX</div>
+ <div style='text-align: justify; text-align-last: right;'>X X X XXX</div>
text-align-last : center
- <div style='text-align: justify; -webkit-text-align-last: center;'>X X X XXX</div>
+ <div style='text-align: justify; text-align-last: center;'>X X X XXX</div>
text-align-last : justify
- <div style='text-align: justify; -webkit-text-align-last: justify;'>X X X XX X</div>
+ <div style='text-align: justify; text-align-last: justify;'>X X X XX X</div>
</div>
<p>Since text-align is justify, text-align-last property should be respected,
Modified: trunk/LayoutTests/fast/css3-text/css3-text-align-last/text-align-last-with-text-align-non-justify.html (295020 => 295021)
--- trunk/LayoutTests/fast/css3-text/css3-text-align-last/text-align-last-with-text-align-non-justify.html 2022-05-30 07:19:19 UTC (rev 295020)
+++ trunk/LayoutTests/fast/css3-text/css3-text-align-last/text-align-last-with-text-align-non-justify.html 2022-05-30 08:29:03 UTC (rev 295021)
@@ -14,19 +14,19 @@
<div id="tests">
text-align : start; text-align-last : end
- <div style='text-align: start; -webkit-text-align-last: end;'>X X X XXX</div>
+ <div style='text-align: start; text-align-last: end;'>X X X XXX</div>
text-align : end; text-align-last : start
- <div style='text-align: end; -webkit-text-align-last: start;'>X X X XXX</div>
+ <div style='text-align: end; text-align-last: start;'>X X X XXX</div>
text-align : left; text-align-last : right
- <div style='text-align: left; -webkit-text-align-last: right;'>X X X XXX</div>
+ <div style='text-align: left; text-align-last: right;'>X X X XXX</div>
text-align : right; text-align-last : left
- <div style='text-align: right; -webkit-text-align-last: left;'>X X X XXX</div>
+ <div style='text-align: right; text-align-last: left;'>X X X XXX</div>
text-align : center; text-align-last : left
- <div style='text-align: center; -webkit-text-align-last: left;'>X X X XXX</div>
+ <div style='text-align: center; text-align-last: left;'>X X X XXX</div>
</div>
<p>Since text-align is not justify, text-align-last property shouldn't be respected,
Modified: trunk/LayoutTests/imported/w3c/web-platform-tests/css/css-cascade/all-prop-initial-xml-expected.txt (295020 => 295021)
--- trunk/LayoutTests/imported/w3c/web-platform-tests/css/css-cascade/all-prop-initial-xml-expected.txt 2022-05-30 07:19:19 UTC (rev 295020)
+++ trunk/LayoutTests/imported/w3c/web-platform-tests/css/css-cascade/all-prop-initial-xml-expected.txt 2022-05-30 08:29:03 UTC (rev 295021)
@@ -289,6 +289,7 @@
PASS tab-size
PASS table-layout
PASS text-align
+PASS text-align-last
PASS text-anchor
PASS text-combine-upright
PASS text-decoration-color
@@ -384,7 +385,6 @@
PASS -webkit-nbsp-mode
PASS -webkit-rtl-ordering
PASS -webkit-ruby-position
-PASS -webkit-text-align-last
PASS -webkit-text-combine
PASS -webkit-text-fill-color
PASS -webkit-text-justify
Modified: trunk/LayoutTests/imported/w3c/web-platform-tests/css/css-cascade/all-prop-revert-layer-expected.txt (295020 => 295021)
--- trunk/LayoutTests/imported/w3c/web-platform-tests/css/css-cascade/all-prop-revert-layer-expected.txt 2022-05-30 07:19:19 UTC (rev 295020)
+++ trunk/LayoutTests/imported/w3c/web-platform-tests/css/css-cascade/all-prop-revert-layer-expected.txt 2022-05-30 08:29:03 UTC (rev 295021)
@@ -285,6 +285,7 @@
PASS tab-size
PASS table-layout
PASS text-align
+PASS text-align-last
PASS text-anchor
PASS text-combine-upright
PASS text-decoration-color
Modified: trunk/LayoutTests/imported/w3c/web-platform-tests/css/css-pseudo/marker-text-align-expected.html (295020 => 295021)
--- trunk/LayoutTests/imported/w3c/web-platform-tests/css/css-pseudo/marker-text-align-expected.html 2022-05-30 07:19:19 UTC (rev 295020)
+++ trunk/LayoutTests/imported/w3c/web-platform-tests/css/css-pseudo/marker-text-align-expected.html 2022-05-30 08:29:03 UTC (rev 295021)
@@ -7,18 +7,18 @@
/* Should not be inherited by ::marker */
text-align: end;
text-align-all: end;
- -webkit-text-align-last: end;
+ text-align-last: end;
}
::marker {
/* Should have no effect */
text-align: end;
text-align-all: end;
- -webkit-text-align-last: end;
+ text-align-last: end;
}
li > div {
text-align: initial;
text-align-all: initial;
- -webkit-text-align-last: initial;
+ text-align-last: initial;
}
ol {
padding-left: 13ch;
Modified: trunk/LayoutTests/imported/w3c/web-platform-tests/css/css-pseudo/marker-text-align-ref.html (295020 => 295021)
--- trunk/LayoutTests/imported/w3c/web-platform-tests/css/css-pseudo/marker-text-align-ref.html 2022-05-30 07:19:19 UTC (rev 295020)
+++ trunk/LayoutTests/imported/w3c/web-platform-tests/css/css-pseudo/marker-text-align-ref.html 2022-05-30 08:29:03 UTC (rev 295021)
@@ -7,18 +7,18 @@
/* Should not be inherited by ::marker */
text-align: end;
text-align-all: end;
- -webkit-text-align-last: end;
+ text-align-last: end;
}
::marker {
/* Should have no effect */
text-align: end;
text-align-all: end;
- -webkit-text-align-last: end;
+ text-align-last: end;
}
li > div {
text-align: initial;
text-align-all: initial;
- -webkit-text-align-last: initial;
+ text-align-last: initial;
}
ol {
padding-left: 13ch;
Modified: trunk/LayoutTests/imported/w3c/web-platform-tests/css/css-pseudo/marker-text-align.html (295020 => 295021)
--- trunk/LayoutTests/imported/w3c/web-platform-tests/css/css-pseudo/marker-text-align.html 2022-05-30 07:19:19 UTC (rev 295020)
+++ trunk/LayoutTests/imported/w3c/web-platform-tests/css/css-pseudo/marker-text-align.html 2022-05-30 08:29:03 UTC (rev 295021)
@@ -11,18 +11,18 @@
/* Should not be inherited by ::marker */
text-align: start;
text-align-all: start;
- -webkit-text-align-last: start;
+ text-align-last: start;
}
::marker {
/* Should have no effect */
text-align: start;
text-align-all: start;
- -webkit-text-align-last: start;
+ text-align-last: start;
}
li > div {
text-align: initial;
text-align-all: initial;
- -webkit-text-align-last: initial;
+ text-align-last: initial;
}
ol {
padding-left: 13ch;
Modified: trunk/LayoutTests/imported/w3c/web-platform-tests/css/css-text/inheritance-expected.txt (295020 => 295021)
--- trunk/LayoutTests/imported/w3c/web-platform-tests/css/css-text/inheritance-expected.txt 2022-05-30 07:19:19 UTC (rev 295020)
+++ trunk/LayoutTests/imported/w3c/web-platform-tests/css/css-text/inheritance-expected.txt 2022-05-30 08:29:03 UTC (rev 295021)
@@ -13,8 +13,8 @@
PASS Property tab-size inherits
FAIL Property text-align-all has initial value start assert_true: text-align-all doesn't seem to be supported in the computed style expected true got false
FAIL Property text-align-all inherits assert_true: text-align-all doesn't seem to be supported in the computed style expected true got false
-FAIL Property text-align-last has initial value auto assert_true: text-align-last doesn't seem to be supported in the computed style expected true got false
-FAIL Property text-align-last inherits assert_true: text-align-last doesn't seem to be supported in the computed style expected true got false
+PASS Property text-align-last has initial value auto
+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
Modified: trunk/LayoutTests/imported/w3c/web-platform-tests/css/css-text/letter-spacing/letter-spacing-bidi-003.xht (295020 => 295021)
--- trunk/LayoutTests/imported/w3c/web-platform-tests/css/css-text/letter-spacing/letter-spacing-bidi-003.xht 2022-05-30 07:19:19 UTC (rev 295020)
+++ trunk/LayoutTests/imported/w3c/web-platform-tests/css/css-text/letter-spacing/letter-spacing-bidi-003.xht 2022-05-30 08:29:03 UTC (rev 295021)
@@ -21,7 +21,7 @@
white-space: pre;
}
.justify {
- -webkit-text-align-last: justify;
+ text-align-last: justify;
-webkit-text-justify: inter-word;
}
.narrow {
Modified: trunk/LayoutTests/imported/w3c/web-platform-tests/css/css-text/parsing/text-align-last-computed-expected.txt (295020 => 295021)
--- trunk/LayoutTests/imported/w3c/web-platform-tests/css/css-text/parsing/text-align-last-computed-expected.txt 2022-05-30 07:19:19 UTC (rev 295020)
+++ trunk/LayoutTests/imported/w3c/web-platform-tests/css/css-text/parsing/text-align-last-computed-expected.txt 2022-05-30 08:29:03 UTC (rev 295021)
@@ -1,10 +1,10 @@
-FAIL Property text-align-last value 'auto' assert_true: text-align-last doesn't seem to be supported in the computed style expected true got false
-FAIL Property text-align-last value 'start' assert_true: text-align-last doesn't seem to be supported in the computed style expected true got false
-FAIL Property text-align-last value 'end' assert_true: text-align-last doesn't seem to be supported in the computed style expected true got false
-FAIL Property text-align-last value 'left' assert_true: text-align-last doesn't seem to be supported in the computed style expected true got false
-FAIL Property text-align-last value 'right' assert_true: text-align-last doesn't seem to be supported in the computed style expected true got false
-FAIL Property text-align-last value 'center' assert_true: text-align-last doesn't seem to be supported in the computed style expected true got false
-FAIL Property text-align-last value 'justify' assert_true: text-align-last doesn't seem to be supported in the computed style expected true got false
-FAIL Property text-align-last value 'match-parent' assert_true: text-align-last doesn't seem to be supported in the computed style expected true got false
+PASS Property text-align-last value 'auto'
+PASS Property text-align-last value 'start'
+PASS Property text-align-last value 'end'
+PASS Property text-align-last value 'left'
+PASS Property text-align-last value 'right'
+PASS Property text-align-last value 'center'
+PASS Property text-align-last value 'justify'
+FAIL Property text-align-last value 'match-parent' assert_equals: expected "match-parent" but got "auto"
Modified: trunk/LayoutTests/imported/w3c/web-platform-tests/css/css-text/parsing/text-align-last-valid-expected.txt (295020 => 295021)
--- trunk/LayoutTests/imported/w3c/web-platform-tests/css/css-text/parsing/text-align-last-valid-expected.txt 2022-05-30 07:19:19 UTC (rev 295020)
+++ trunk/LayoutTests/imported/w3c/web-platform-tests/css/css-text/parsing/text-align-last-valid-expected.txt 2022-05-30 08:29:03 UTC (rev 295021)
@@ -1,10 +1,10 @@
-FAIL e.style['text-align-last'] = "auto" should set the property value assert_not_equals: property should be set got disallowed value ""
-FAIL e.style['text-align-last'] = "start" should set the property value assert_not_equals: property should be set got disallowed value ""
-FAIL e.style['text-align-last'] = "end" should set the property value assert_not_equals: property should be set got disallowed value ""
-FAIL e.style['text-align-last'] = "left" should set the property value assert_not_equals: property should be set got disallowed value ""
-FAIL e.style['text-align-last'] = "right" should set the property value assert_not_equals: property should be set got disallowed value ""
-FAIL e.style['text-align-last'] = "center" should set the property value assert_not_equals: property should be set got disallowed value ""
-FAIL e.style['text-align-last'] = "justify" should set the property value assert_not_equals: property should be set got disallowed value ""
-FAIL e.style['text-align-last'] = "match-parent" should set the property value assert_not_equals: property should be set got disallowed value ""
+PASS e.style['text-align-last'] = "auto" should set the property value
+PASS e.style['text-align-last'] = "start" should set the property value
+PASS e.style['text-align-last'] = "end" should set the property value
+PASS e.style['text-align-last'] = "left" should set the property value
+PASS e.style['text-align-last'] = "right" should set the property value
+PASS e.style['text-align-last'] = "center" should set the property value
+PASS e.style['text-align-last'] = "justify" should set the property value
+PASS e.style['text-align-last'] = "match-parent" should set the property value
Modified: trunk/LayoutTests/imported/w3c/web-platform-tests/css/css-text/text-align/text-align-last-001.html (295020 => 295021)
--- trunk/LayoutTests/imported/w3c/web-platform-tests/css/css-text/text-align/text-align-last-001.html 2022-05-30 07:19:19 UTC (rev 295020)
+++ trunk/LayoutTests/imported/w3c/web-platform-tests/css/css-text/text-align/text-align-last-001.html 2022-05-30 08:29:03 UTC (rev 295021)
@@ -10,7 +10,7 @@
div {
border: 1px solid blue;
text-align: right;
- -webkit-text-align-last: start;
+ text-align-last: start;
width: 200px;
}
</style>
Modified: trunk/LayoutTests/imported/w3c/web-platform-tests/css/css-text/text-align/text-align-last-002.html (295020 => 295021)
--- trunk/LayoutTests/imported/w3c/web-platform-tests/css/css-text/text-align/text-align-last-002.html 2022-05-30 07:19:19 UTC (rev 295020)
+++ trunk/LayoutTests/imported/w3c/web-platform-tests/css/css-text/text-align/text-align-last-002.html 2022-05-30 08:29:03 UTC (rev 295021)
@@ -10,7 +10,7 @@
div {
border: 1px solid blue;
text-align: left;
- -webkit-text-align-last: end;
+ text-align-last: end;
width: 200px;
}
</style>
Modified: trunk/LayoutTests/imported/w3c/web-platform-tests/css/css-text/text-align/text-align-last-003.html (295020 => 295021)
--- trunk/LayoutTests/imported/w3c/web-platform-tests/css/css-text/text-align/text-align-last-003.html 2022-05-30 07:19:19 UTC (rev 295020)
+++ trunk/LayoutTests/imported/w3c/web-platform-tests/css/css-text/text-align/text-align-last-003.html 2022-05-30 08:29:03 UTC (rev 295021)
@@ -10,7 +10,7 @@
div {
border: 1px solid blue;
text-align: right;
- -webkit-text-align-last: left;
+ text-align-last: left;
width: 200px;
}
</style>
Modified: trunk/LayoutTests/imported/w3c/web-platform-tests/css/css-text/text-align/text-align-last-004.html (295020 => 295021)
--- trunk/LayoutTests/imported/w3c/web-platform-tests/css/css-text/text-align/text-align-last-004.html 2022-05-30 07:19:19 UTC (rev 295020)
+++ trunk/LayoutTests/imported/w3c/web-platform-tests/css/css-text/text-align/text-align-last-004.html 2022-05-30 08:29:03 UTC (rev 295021)
@@ -10,7 +10,7 @@
div {
border: 1px solid blue;
text-align: left;
- -webkit-text-align-last: right;
+ text-align-last: right;
width: 200px;
}
</style>
Modified: trunk/LayoutTests/imported/w3c/web-platform-tests/css/css-text/text-align/text-align-last-005.html (295020 => 295021)
--- trunk/LayoutTests/imported/w3c/web-platform-tests/css/css-text/text-align/text-align-last-005.html 2022-05-30 07:19:19 UTC (rev 295020)
+++ trunk/LayoutTests/imported/w3c/web-platform-tests/css/css-text/text-align/text-align-last-005.html 2022-05-30 08:29:03 UTC (rev 295021)
@@ -9,7 +9,7 @@
<style>
div {
border: 1px solid blue;
- -webkit-text-align-last: center;
+ text-align-last: center;
width: 200px;
}
</style>
Modified: trunk/LayoutTests/imported/w3c/web-platform-tests/css/css-text/text-align/text-align-last-006.html (295020 => 295021)
--- trunk/LayoutTests/imported/w3c/web-platform-tests/css/css-text/text-align/text-align-last-006.html 2022-05-30 07:19:19 UTC (rev 295020)
+++ trunk/LayoutTests/imported/w3c/web-platform-tests/css/css-text/text-align/text-align-last-006.html 2022-05-30 08:29:03 UTC (rev 295021)
@@ -10,7 +10,7 @@
<style>
div {
border: 1px solid blue;
- -webkit-text-align-last: justify;
+ text-align-last: justify;
width: 150px;
}
</style>
Modified: trunk/LayoutTests/imported/w3c/web-platform-tests/css/css-text/text-align/text-align-last-007.html (295020 => 295021)
--- trunk/LayoutTests/imported/w3c/web-platform-tests/css/css-text/text-align/text-align-last-007.html 2022-05-30 07:19:19 UTC (rev 295020)
+++ trunk/LayoutTests/imported/w3c/web-platform-tests/css/css-text/text-align/text-align-last-007.html 2022-05-30 08:29:03 UTC (rev 295021)
@@ -11,7 +11,7 @@
div {
border: 1px solid blue;
text-align: right;
- -webkit-text-align-last: auto;
+ text-align-last: auto;
width: 200px;
}
</style>
Modified: trunk/LayoutTests/imported/w3c/web-platform-tests/css/css-text/text-align/text-align-last-008.html (295020 => 295021)
--- trunk/LayoutTests/imported/w3c/web-platform-tests/css/css-text/text-align/text-align-last-008.html 2022-05-30 07:19:19 UTC (rev 295020)
+++ trunk/LayoutTests/imported/w3c/web-platform-tests/css/css-text/text-align/text-align-last-008.html 2022-05-30 08:29:03 UTC (rev 295021)
@@ -11,7 +11,7 @@
div {
border: 1px solid blue;
text-align: end;
- -webkit-text-align-last: auto;
+ text-align-last: auto;
width: 200px;
}
</style>
Modified: trunk/LayoutTests/imported/w3c/web-platform-tests/css/css-text/text-align/text-align-last-009.html (295020 => 295021)
--- trunk/LayoutTests/imported/w3c/web-platform-tests/css/css-text/text-align/text-align-last-009.html 2022-05-30 07:19:19 UTC (rev 295020)
+++ trunk/LayoutTests/imported/w3c/web-platform-tests/css/css-text/text-align/text-align-last-009.html 2022-05-30 08:29:03 UTC (rev 295021)
@@ -11,7 +11,7 @@
div {
border: 1px solid blue;
text-align: center;
- -webkit-text-align-last: auto;
+ text-align-last: auto;
width: 200px;
}
</style>
Modified: trunk/LayoutTests/imported/w3c/web-platform-tests/css/css-text/text-align/text-align-last-010.html (295020 => 295021)
--- trunk/LayoutTests/imported/w3c/web-platform-tests/css/css-text/text-align/text-align-last-010.html 2022-05-30 07:19:19 UTC (rev 295020)
+++ trunk/LayoutTests/imported/w3c/web-platform-tests/css/css-text/text-align/text-align-last-010.html 2022-05-30 08:29:03 UTC (rev 295021)
@@ -10,7 +10,7 @@
<style>
div {
border: 1px solid blue;
- -webkit-text-align-last: right;
+ text-align-last: right;
}
</style>
<body>
Modified: trunk/LayoutTests/imported/w3c/web-platform-tests/css/css-text/text-align/text-align-last-011.html (295020 => 295021)
--- trunk/LayoutTests/imported/w3c/web-platform-tests/css/css-text/text-align/text-align-last-011.html 2022-05-30 07:19:19 UTC (rev 295020)
+++ trunk/LayoutTests/imported/w3c/web-platform-tests/css/css-text/text-align/text-align-last-011.html 2022-05-30 08:29:03 UTC (rev 295021)
@@ -10,7 +10,7 @@
<style>
div {
border: 1px solid blue;
- -webkit-text-align-last: end;
+ text-align-last: end;
}
</style>
<body>
Modified: trunk/LayoutTests/imported/w3c/web-platform-tests/css/css-text/text-align/text-align-last-012.html (295020 => 295021)
--- trunk/LayoutTests/imported/w3c/web-platform-tests/css/css-text/text-align/text-align-last-012.html 2022-05-30 07:19:19 UTC (rev 295020)
+++ trunk/LayoutTests/imported/w3c/web-platform-tests/css/css-text/text-align/text-align-last-012.html 2022-05-30 08:29:03 UTC (rev 295021)
@@ -9,7 +9,7 @@
<style>
div {
border: 1px solid blue;
- -webkit-text-align-last: center;
+ text-align-last: center;
}
</style>
<body>
Modified: trunk/LayoutTests/imported/w3c/web-platform-tests/css/css-text/text-align/text-align-last-013.html (295020 => 295021)
--- trunk/LayoutTests/imported/w3c/web-platform-tests/css/css-text/text-align/text-align-last-013.html 2022-05-30 07:19:19 UTC (rev 295020)
+++ trunk/LayoutTests/imported/w3c/web-platform-tests/css/css-text/text-align/text-align-last-013.html 2022-05-30 08:29:03 UTC (rev 295021)
@@ -10,7 +10,7 @@
div {
border: 1px solid blue;
display: inline;
- -webkit-text-align-last: right;
+ text-align-last: right;
}
</style>
<body>
Modified: trunk/LayoutTests/imported/w3c/web-platform-tests/css/css-text/text-align/text-align-last-014.html (295020 => 295021)
--- trunk/LayoutTests/imported/w3c/web-platform-tests/css/css-text/text-align/text-align-last-014.html 2022-05-30 07:19:19 UTC (rev 295020)
+++ trunk/LayoutTests/imported/w3c/web-platform-tests/css/css-text/text-align/text-align-last-014.html 2022-05-30 08:29:03 UTC (rev 295021)
@@ -10,7 +10,7 @@
span {
border: 1px solid blue;
display: block;
- -webkit-text-align-last: center;
+ text-align-last: center;
width: 200px;
}
</style>
Modified: trunk/LayoutTests/imported/w3c/web-platform-tests/css/css-text/text-align/text-align-last-empty-inline.html (295020 => 295021)
--- trunk/LayoutTests/imported/w3c/web-platform-tests/css/css-text/text-align/text-align-last-empty-inline.html 2022-05-30 07:19:19 UTC (rev 295020)
+++ trunk/LayoutTests/imported/w3c/web-platform-tests/css/css-text/text-align/text-align-last-empty-inline.html 2022-05-30 08:29:03 UTC (rev 295021)
@@ -6,7 +6,7 @@
<script src=""
<style>
#justify {
- -webkit-text-align-last: justify;
+ text-align-last: justify;
margin-bottom: 5px;
}
#justify > span, #reference > span {
Modified: trunk/LayoutTests/imported/w3c/web-platform-tests/css/css-text/text-align/text-align-last-wins-001.html (295020 => 295021)
--- trunk/LayoutTests/imported/w3c/web-platform-tests/css/css-text/text-align/text-align-last-wins-001.html 2022-05-30 07:19:19 UTC (rev 295020)
+++ trunk/LayoutTests/imported/w3c/web-platform-tests/css/css-text/text-align/text-align-last-wins-001.html 2022-05-30 08:29:03 UTC (rev 295021)
@@ -8,7 +8,7 @@
<meta name=assert content="If a line is both the first and last line, text-align-last applies">
<style>
div {
- -webkit-text-align-last: right;
+ text-align-last: right;
width: 300px;
border: solid;
}
Modified: trunk/LayoutTests/imported/w3c/web-platform-tests/css/css-text-decor/text-decoration-thickness-percent-001-expected.html (295020 => 295021)
--- trunk/LayoutTests/imported/w3c/web-platform-tests/css/css-text-decor/text-decoration-thickness-percent-001-expected.html 2022-05-30 07:19:19 UTC (rev 295020)
+++ trunk/LayoutTests/imported/w3c/web-platform-tests/css/css-text-decor/text-decoration-thickness-percent-001-expected.html 2022-05-30 08:29:03 UTC (rev 295021)
@@ -15,7 +15,7 @@
display: inline-block;
font: 20px/1 Ahem;
width: 100px;
- -webkit-text-align-last: justify;
+ text-align-last: justify;
color: transparent;
text-decoration: green underline;
text-decoration-skip-ink: none;
Modified: trunk/LayoutTests/imported/w3c/web-platform-tests/css/css-text-decor/text-decoration-thickness-percent-001.html (295020 => 295021)
--- trunk/LayoutTests/imported/w3c/web-platform-tests/css/css-text-decor/text-decoration-thickness-percent-001.html 2022-05-30 07:19:19 UTC (rev 295020)
+++ trunk/LayoutTests/imported/w3c/web-platform-tests/css/css-text-decor/text-decoration-thickness-percent-001.html 2022-05-30 08:29:03 UTC (rev 295021)
@@ -18,7 +18,7 @@
display: inline-block;
font: 20px/1 Ahem;
width: 100px;
- -webkit-text-align-last: justify;
+ text-align-last: justify;
}
span {
color: red;
Modified: trunk/LayoutTests/imported/w3c/web-platform-tests/svg/styling/required-properties-expected.txt (295020 => 295021)
--- trunk/LayoutTests/imported/w3c/web-platform-tests/svg/styling/required-properties-expected.txt 2022-05-30 07:19:19 UTC (rev 295020)
+++ trunk/LayoutTests/imported/w3c/web-platform-tests/svg/styling/required-properties-expected.txt 2022-05-30 08:29:03 UTC (rev 295021)
@@ -60,7 +60,7 @@
PASS Property "stroke-width" is supported
PASS Property "text-align" is supported
FAIL Property "text-align-all" is supported assert_true: expected true got false
-FAIL Property "text-align-last" is supported assert_true: expected true got false
+PASS Property "text-align-last" is supported
PASS Property "text-anchor" is supported
PASS Property "text-decoration" is supported
PASS Property "text-decoration-color" is supported
Modified: trunk/LayoutTests/platform/gtk/imported/w3c/web-platform-tests/css/css-cascade/all-prop-initial-xml-expected.txt (295020 => 295021)
--- trunk/LayoutTests/platform/gtk/imported/w3c/web-platform-tests/css/css-cascade/all-prop-initial-xml-expected.txt 2022-05-30 07:19:19 UTC (rev 295020)
+++ trunk/LayoutTests/platform/gtk/imported/w3c/web-platform-tests/css/css-cascade/all-prop-initial-xml-expected.txt 2022-05-30 08:29:03 UTC (rev 295021)
@@ -289,6 +289,7 @@
PASS tab-size
PASS table-layout
PASS text-align
+PASS text-align-last
PASS text-anchor
PASS text-combine-upright
PASS text-decoration-color
@@ -383,7 +384,6 @@
PASS -webkit-rtl-ordering
PASS -webkit-ruby-position
PASS -webkit-tap-highlight-color
-PASS -webkit-text-align-last
PASS -webkit-text-combine
PASS -webkit-text-fill-color
PASS -webkit-text-justify
Modified: trunk/LayoutTests/platform/mac-wk1/imported/w3c/web-platform-tests/css/css-cascade/all-prop-revert-layer-expected.txt (295020 => 295021)
--- trunk/LayoutTests/platform/mac-wk1/imported/w3c/web-platform-tests/css/css-cascade/all-prop-revert-layer-expected.txt 2022-05-30 07:19:19 UTC (rev 295020)
+++ trunk/LayoutTests/platform/mac-wk1/imported/w3c/web-platform-tests/css/css-cascade/all-prop-revert-layer-expected.txt 2022-05-30 08:29:03 UTC (rev 295021)
@@ -284,6 +284,7 @@
PASS tab-size
PASS table-layout
PASS text-align
+PASS text-align-last
PASS text-anchor
PASS text-combine-upright
PASS text-decoration-color
Modified: trunk/LayoutTests/platform/wpe/imported/w3c/web-platform-tests/css/css-cascade/all-prop-initial-xml-expected.txt (295020 => 295021)
--- trunk/LayoutTests/platform/wpe/imported/w3c/web-platform-tests/css/css-cascade/all-prop-initial-xml-expected.txt 2022-05-30 07:19:19 UTC (rev 295020)
+++ trunk/LayoutTests/platform/wpe/imported/w3c/web-platform-tests/css/css-cascade/all-prop-initial-xml-expected.txt 2022-05-30 08:29:03 UTC (rev 295021)
@@ -289,6 +289,7 @@
PASS tab-size
PASS table-layout
PASS text-align
+PASS text-align-last
PASS text-anchor
PASS text-combine-upright
PASS text-decoration-color
@@ -382,7 +383,6 @@
PASS -webkit-rtl-ordering
PASS -webkit-ruby-position
PASS -webkit-tap-highlight-color
-PASS -webkit-text-align-last
PASS -webkit-text-combine
PASS -webkit-text-fill-color
PASS -webkit-text-justify
Modified: trunk/Source/WebCore/animation/CSSPropertyAnimation.cpp (295020 => 295021)
--- trunk/Source/WebCore/animation/CSSPropertyAnimation.cpp 2022-05-30 07:19:19 UTC (rev 295020)
+++ trunk/Source/WebCore/animation/CSSPropertyAnimation.cpp 2022-05-30 08:29:03 UTC (rev 295021)
@@ -3652,8 +3652,8 @@
case CSSPropertyWebkitUserDrag:
case CSSPropertyWebkitUserModify:
case CSSPropertyUserSelect:
- // TODO (webkit.org/b/240591): implement animation support for the following two elements.
- case CSSPropertyWebkitTextAlignLast:
+ // TODO (webkit.org/b/240591): Implement animation support for the two following properties.
+ case CSSPropertyTextAlignLast:
case CSSPropertyWebkitTextJustify:
continue;
default:
Modified: trunk/Source/WebCore/css/CSSComputedStyleDeclaration.cpp (295020 => 295021)
--- trunk/Source/WebCore/css/CSSComputedStyleDeclaration.cpp 2022-05-30 07:19:19 UTC (rev 295020)
+++ trunk/Source/WebCore/css/CSSComputedStyleDeclaration.cpp 2022-05-30 08:29:03 UTC (rev 295021)
@@ -3555,12 +3555,12 @@
return cssValuePool.createValue(style.tableLayout());
case CSSPropertyTextAlign:
return cssValuePool.createValue(style.textAlign());
- case CSSPropertyTextDecoration:
- return renderTextDecorationLineFlagsToCSSValue(style.textDecorationLine());
- case CSSPropertyWebkitTextAlignLast:
+ case CSSPropertyTextAlignLast:
if (!m_element->document().settings().cssTextAlignLastEnabled())
return nullptr;
return cssValuePool.createValue(style.textAlignLast());
+ case CSSPropertyTextDecoration:
+ return renderTextDecorationLineFlagsToCSSValue(style.textDecorationLine());
case CSSPropertyWebkitTextJustify:
if (!m_element->document().settings().cssTextJustifyEnabled())
return nullptr;
Modified: trunk/Source/WebCore/css/CSSProperties.json (295020 => 295021)
--- trunk/Source/WebCore/css/CSSProperties.json 2022-05-30 07:19:19 UTC (rev 295020)
+++ trunk/Source/WebCore/css/CSSProperties.json 2022-05-30 08:29:03 UTC (rev 295021)
@@ -4594,6 +4594,28 @@
"url": "https://www.w3.org/TR/CSS22/text.html#propdef-text-align"
}
},
+ "text-align-last": {
+ "inherited": true,
+ "values": [
+ "left",
+ "right",
+ "center",
+ "justify",
+ "start",
+ "end",
+ "auto",
+ "match-parent"
+ ],
+ "codegen-properties": {
+ "converter": "TextAlignLast",
+ "custom": "Initial|Value",
+ "settings-flag": "cssTextAlignLastEnabled"
+ },
+ "specification": {
+ "category": "css-text",
+ "url": "https://www.w3.org/TR/css-text-3/#text-align-last-property"
+ }
+ },
"text-anchor": {
"inherited": true,
"values": [
@@ -6826,28 +6848,6 @@
"url": "https://www.w3.org/TR/css-writing-modes-3/#propdef-direction"
}
},
- "-webkit-text-align-last": {
- "inherited": true,
- "values": [
- "left",
- "right",
- "center",
- "justify",
- "start",
- "end",
- "auto"
- ],
- "codegen-properties": {
- "settings-flag": "cssTextAlignLastEnabled"
- },
- "status": {
- "status": "experimental"
- },
- "specification": {
- "category": "css-text",
- "url": "https://www.w3.org/TR/css-text-3/#text-align-last-property"
- }
- },
"-webkit-text-justify": {
"inherited": true,
"values": [
Modified: trunk/Source/WebCore/css/StyleProperties.cpp (295020 => 295021)
--- trunk/Source/WebCore/css/StyleProperties.cpp 2022-05-30 07:19:19 UTC (rev 295020)
+++ trunk/Source/WebCore/css/StyleProperties.cpp 2022-05-30 08:29:03 UTC (rev 295021)
@@ -1801,7 +1801,7 @@
CSSPropertyPageBreakBefore,
CSSPropertyPageBreakInside,
CSSPropertyTextAlign,
- CSSPropertyWebkitTextAlignLast,
+ CSSPropertyTextAlignLast,
CSSPropertyWebkitTextJustify,
CSSPropertyTextIndent,
CSSPropertyWidows
Modified: trunk/Source/WebCore/css/parser/CSSParserContext.cpp (295020 => 295021)
--- trunk/Source/WebCore/css/parser/CSSParserContext.cpp 2022-05-30 07:19:19 UTC (rev 295020)
+++ trunk/Source/WebCore/css/parser/CSSParserContext.cpp 2022-05-30 08:29:03 UTC (rev 295021)
@@ -282,7 +282,7 @@
case CSSPropertyOffsetAnchor:
case CSSPropertyOffsetRotate:
return !motionPathEnabled;
- case CSSPropertyWebkitTextAlignLast:
+ case CSSPropertyTextAlignLast:
return !cssTextAlignLastEnabled;
case CSSPropertyWebkitTextJustify:
return !cssTextJustifyEnabled;
Modified: trunk/Source/WebCore/css/parser/CSSParserFastPaths.cpp (295020 => 295021)
--- trunk/Source/WebCore/css/parser/CSSParserFastPaths.cpp 2022-05-30 07:19:19 UTC (rev 295020)
+++ trunk/Source/WebCore/css/parser/CSSParserFastPaths.cpp 2022-05-30 08:29:03 UTC (rev 295021)
@@ -716,9 +716,9 @@
return valueID == CSSValueAuto || valueID == CSSValueFixed;
case CSSPropertyTextAlign:
return (valueID >= CSSValueWebkitAuto && valueID <= CSSValueWebkitMatchParent) || valueID == CSSValueStart || valueID == CSSValueEnd;
- case CSSPropertyWebkitTextAlignLast:
- // auto | start | end | left | right | center | justify
- return (valueID >= CSSValueLeft && valueID <= CSSValueJustify) || valueID == CSSValueStart || valueID == CSSValueEnd || valueID == CSSValueAuto;
+ case CSSPropertyTextAlignLast:
+ // auto | start | end | left | right | center | justify | match-parent
+ return (valueID >= CSSValueLeft && valueID <= CSSValueJustify) || valueID == CSSValueStart || valueID == CSSValueEnd || valueID == CSSValueAuto || valueID == CSSValueMatchParent;
case CSSPropertyTextAnchor:
return valueID == CSSValueStart || valueID == CSSValueMiddle || valueID == CSSValueEnd;
case CSSPropertyTextDecorationStyle:
@@ -961,6 +961,8 @@
case CSSPropertyResize:
case CSSPropertyTableLayout:
case CSSPropertyTextAlign:
+ case CSSPropertyTextAlignLast:
+ case CSSPropertyWebkitTextJustify:
case CSSPropertyTextOrientation:
case CSSPropertyTextOverflow:
case CSSPropertyTextRendering:
@@ -1018,14 +1020,9 @@
// case CSSPropertyAll:
// FIXME-NEWPARSER: Add the following unprefixed properties:
- // case CSSPropertyBackfaceVisibility:
// case CSSPropertyHyphens:
// case CSSPropertyOverflowAnchor:
// case CSSPropertyScrollSnapType:
- // case CSSPropertyTextAlignLast:
- // case CSSPropertyTextCombineUpright:
- // case CSSPropertyTextJustify:
- // case CSSPropertyUserSelect:
#if ENABLE(CSS_TRAILING_WORD)
case CSSPropertyAppleTrailingWord:
#endif
@@ -1042,8 +1039,6 @@
#if ENABLE(OVERFLOW_SCROLLING_TOUCH)
case CSSPropertyWebkitOverflowScrolling:
#endif
- case CSSPropertyWebkitTextAlignLast:
- case CSSPropertyWebkitTextJustify:
#if PLATFORM(IOS_FAMILY)
// Apple specific property. This will never be standardized and is purely to
// support custom WebKit-based Apple applications.
Modified: trunk/Source/WebCore/rendering/style/RenderStyle.h (295020 => 295021)
--- trunk/Source/WebCore/rendering/style/RenderStyle.h 2022-05-30 07:19:19 UTC (rev 295020)
+++ trunk/Source/WebCore/rendering/style/RenderStyle.h 2022-05-30 08:29:03 UTC (rev 295021)
@@ -378,6 +378,7 @@
const Length& textIndent() const { return m_rareInheritedData->indent; }
TextAlignMode textAlign() const { return static_cast<TextAlignMode>(m_inheritedFlags.textAlign); }
+ TextAlignLast textAlignLast() const { return static_cast<TextAlignLast>(m_rareInheritedData->textAlignLast); }
TextTransform textTransform() const { return static_cast<TextTransform>(m_inheritedFlags.textTransform); }
OptionSet<TextDecorationLine> textDecorationsInEffect() const { return OptionSet<TextDecorationLine>::fromRaw(m_inheritedFlags.textDecorationLines); }
OptionSet<TextDecorationLine> textDecorationLine() const { return OptionSet<TextDecorationLine>::fromRaw(m_visualData->textDecorationLine); }
@@ -389,7 +390,6 @@
TextIndentLine textIndentLine() const { return static_cast<TextIndentLine>(m_rareInheritedData->textIndentLine); }
TextIndentType textIndentType() const { return static_cast<TextIndentType>(m_rareInheritedData->textIndentType); }
- TextAlignLast textAlignLast() const { return static_cast<TextAlignLast>(m_rareInheritedData->textAlignLast); }
TextJustify textJustify() const { return static_cast<TextJustify>(m_rareInheritedData->textJustify); }
const Length& wordSpacing() const;
@@ -1023,6 +1023,7 @@
void setColor(const Color&);
void setTextIndent(Length&& length) { SET_VAR(m_rareInheritedData, indent, WTFMove(length)); }
void setTextAlign(TextAlignMode v) { m_inheritedFlags.textAlign = static_cast<unsigned>(v); }
+ void setTextAlignLast(TextAlignLast v) { SET_VAR(m_rareInheritedData, textAlignLast, static_cast<unsigned>(v)); }
void setTextTransform(TextTransform v) { m_inheritedFlags.textTransform = static_cast<unsigned>(v); }
void addToTextDecorationsInEffect(OptionSet<TextDecorationLine> v) { m_inheritedFlags.textDecorationLines |= static_cast<unsigned>(v.toRaw()); }
void setTextDecorationsInEffect(OptionSet<TextDecorationLine> v) { m_inheritedFlags.textDecorationLines = v.toRaw(); }
@@ -1042,7 +1043,6 @@
void setTextIndentLine(TextIndentLine v) { SET_VAR(m_rareInheritedData, textIndentLine, static_cast<unsigned>(v)); }
void setTextIndentType(TextIndentType v) { SET_VAR(m_rareInheritedData, textIndentType, static_cast<unsigned>(v)); }
- void setTextAlignLast(TextAlignLast v) { SET_VAR(m_rareInheritedData, textAlignLast, static_cast<unsigned>(v)); }
void setTextJustify(TextJustify v) { SET_VAR(m_rareInheritedData, textJustify, static_cast<unsigned>(v)); }
#if ENABLE(TEXT_AUTOSIZING)
@@ -1662,6 +1662,7 @@
// Returning -100% percent here means the line-height is not set.
static Length initialLineHeight() { return Length(-100.0f, LengthType::Percent); }
static TextAlignMode initialTextAlign() { return TextAlignMode::Start; }
+ static TextAlignLast initialTextAlignLast() { return TextAlignLast::Auto; }
static OptionSet<TextDecorationLine> initialTextDecorationLine() { return OptionSet<TextDecorationLine> { }; }
static TextDecorationStyle initialTextDecorationStyle() { return TextDecorationStyle::Solid; }
static TextDecorationSkipInk initialTextDecorationSkipInk() { return TextDecorationSkipInk::Auto; }
@@ -1774,7 +1775,6 @@
static TextIndentLine initialTextIndentLine() { return TextIndentLine::FirstLine; }
static TextIndentType initialTextIndentType() { return TextIndentType::Normal; }
- static TextAlignLast initialTextAlignLast() { return TextAlignLast::Auto; }
static TextJustify initialTextJustify() { return TextJustify::Auto; }
#if ENABLE(CURSOR_VISIBILITY)
Modified: trunk/Source/WebCore/style/StyleBuilderConverter.h (295020 => 295021)
--- trunk/Source/WebCore/style/StyleBuilderConverter.h 2022-05-30 07:19:19 UTC (rev 295020)
+++ trunk/Source/WebCore/style/StyleBuilderConverter.h 2022-05-30 08:29:03 UTC (rev 295021)
@@ -106,6 +106,7 @@
static AtomString convertStringOrNoneAtom(BuilderState& state, const CSSValue& value) { return AtomString { convertStringOrNone(state, value) }; }
static OptionSet<TextEmphasisPosition> convertTextEmphasisPosition(BuilderState&, const CSSValue&);
static TextAlignMode convertTextAlign(BuilderState&, const CSSValue&);
+ static TextAlignLast convertTextAlignLast(BuilderState&, const CSSValue&);
static RefPtr<PathOperation> convertPathOperation(BuilderState&, const CSSValue&);
static Resize convertResize(BuilderState&, const CSSValue&);
static int convertMarqueeRepetition(BuilderState&, const CSSValue&);
@@ -620,7 +621,22 @@
return parentStyle.isLeftToRightDirection() ? TextAlignMode::Right : TextAlignMode::Left;
return parentStyle.textAlign();
}
+inline TextAlignLast BuilderConverter::convertTextAlignLast(BuilderState& builderState, const CSSValue& value)
+{
+ auto& primitiveValue = downcast<CSSPrimitiveValue>(value);
+ ASSERT(primitiveValue.isValueID());
+ if (primitiveValue.valueID() != CSSValueMatchParent)
+ return primitiveValue;
+
+ auto& parentStyle = builderState.parentStyle();
+ if (parentStyle.textAlignLast() == TextAlignLast::Start)
+ return parentStyle.isLeftToRightDirection() ? TextAlignLast::Left : TextAlignLast::Right;
+ if (parentStyle.textAlignLast() == TextAlignLast::End)
+ return parentStyle.isLeftToRightDirection() ? TextAlignLast::Right : TextAlignLast::Left;
+ return parentStyle.textAlignLast();
+}
+
inline RefPtr<PathOperation> BuilderConverter::convertPathOperation(BuilderState& builderState, const CSSValue& value)
{
if (is<CSSPrimitiveValue>(value)) {
Modified: trunk/Source/WebCore/style/StyleBuilderCustom.h (295020 => 295021)
--- trunk/Source/WebCore/style/StyleBuilderCustom.h 2022-05-30 07:19:19 UTC (rev 295020)
+++ trunk/Source/WebCore/style/StyleBuilderCustom.h 2022-05-30 08:29:03 UTC (rev 295021)
@@ -141,6 +141,8 @@
// Custom handling of initial + value only.
static void applyInitialTextAlign(BuilderState&);
static void applyValueTextAlign(BuilderState&, CSSValue&);
+ static void applyInitialTextAlignLast(BuilderState&);
+ static void applyValueTextAlignLast(BuilderState&, CSSValue&);
// Custom handling of value setting only.
static void applyValueBaselineShift(BuilderState&, CSSValue&);
@@ -206,6 +208,16 @@
builderState.style().setHasExplicitlySetTextAlign(true);
}
+inline void BuilderCustom::applyInitialTextAlignLast(BuilderState& builderState)
+{
+ builderState.style().setTextAlignLast(RenderStyle::initialTextAlignLast());
+}
+
+inline void BuilderCustom::applyValueTextAlignLast(BuilderState& builderState, CSSValue& value)
+{
+ builderState.style().setTextAlignLast(BuilderConverter::convertTextAlignLast(builderState, value));
+}
+
inline void BuilderCustom::resetEffectiveZoom(BuilderState& builderState)
{
// Reset the zoom in effect. This allows the setZoom method to accurately compute a new zoom in effect.
Modified: trunk/Source/WebInspectorUI/UserInterface/External/CSSDocumentation/CSSDocumentation-overrides.json (295020 => 295021)
--- trunk/Source/WebInspectorUI/UserInterface/External/CSSDocumentation/CSSDocumentation-overrides.json 2022-05-30 07:19:19 UTC (rev 295020)
+++ trunk/Source/WebInspectorUI/UserInterface/External/CSSDocumentation/CSSDocumentation-overrides.json 2022-05-30 08:29:03 UTC (rev 295021)
@@ -1,4 +1,7 @@
{
+ "text-align-last": {
+ "syntax": "auto | start | end | left | right | center | justify | match-parent"
+ },
"shape-outside": {
"description": "Defines a shape around which adjacent inline content should wrap."
},
Modified: trunk/Source/WebInspectorUI/UserInterface/External/CSSDocumentation/CSSDocumentation.js (295020 => 295021)
--- trunk/Source/WebInspectorUI/UserInterface/External/CSSDocumentation/CSSDocumentation.js 2022-05-30 07:19:19 UTC (rev 295020)
+++ trunk/Source/WebInspectorUI/UserInterface/External/CSSDocumentation/CSSDocumentation.js 2022-05-30 08:29:03 UTC (rev 295021)
@@ -2357,7 +2357,7 @@
},
"text-align-last": {
"description": "Describes how the last line of a block or a line right before a forced line break is aligned when 'text-align' is set to 'justify'.",
- "syntax": "auto | start | end | left | right | center | justify",
+ "syntax": "auto | start | end | left | right | center | justify | match-parent",
"url": "https://developer.mozilla.org/docs/Web/CSS/text-align-last"
},
"text-anchor": {
Modified: trunk/Source/WebInspectorUI/UserInterface/Models/CSSKeywordCompletions.js (295020 => 295021)
--- trunk/Source/WebInspectorUI/UserInterface/Models/CSSKeywordCompletions.js 2022-05-30 07:19:19 UTC (rev 295020)
+++ trunk/Source/WebInspectorUI/UserInterface/Models/CSSKeywordCompletions.js 2022-05-30 08:29:03 UTC (rev 295021)
@@ -311,7 +311,6 @@
"-webkit-overflow-scrolling",
"-webkit-rtl-ordering",
"-webkit-ruby-position",
- "-webkit-text-align-last",
"-webkit-text-combine",
"-webkit-text-decoration-skip",
"-webkit-text-decorations-in-effect",
@@ -400,6 +399,7 @@
"stroke-width",
"tab-size",
"text-align",
+ "text-align-last",
"text-anchor",
"text-indent",
"text-rendering",
@@ -1126,9 +1126,6 @@
"-webkit-ruby-position": [
"after", "before", "inter-character",
],
- "-webkit-text-align-last": [
- "auto", "start", "end", "left", "right", "center", "justify",
- ],
"-webkit-text-combine": [
"none", "horizontal",
],
@@ -1339,6 +1336,9 @@
"text-align": [
"-webkit-auto", "left", "right", "center", "justify", "match-parent", "-webkit-left", "-webkit-right", "-webkit-center", "-webkit-match-parent", "start", "end",
],
+ "text-align-last": [
+ "auto", "start", "end", "left", "right", "center", "justify", "match-parent",
+ ],
"text-anchor": [
"middle", "start", "end",
],