layout: Add support for text-align-last (#30905)

This change adds support for `text-align-last` as well as ensuring that
it also applies to lines before forced line breaks. Two tests start to
fail because they rely on right-to-left text to pass:

 - /css/css-text/text-align/text-align-last-010.html.ini
 - /css/css-text/text-align/text-align-last-011.html.ini
This commit is contained in:
Martin Robinson 2023-12-21 15:45:34 +01:00 committed by GitHub
parent d007d265bd
commit 74798c4b7b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
36 changed files with 37 additions and 544 deletions

View file

@ -1,24 +1,3 @@
[text-align-last-computed.html]
[Property text-align-last value 'auto']
expected: FAIL
[Property text-align-last value 'start']
expected: FAIL
[Property text-align-last value 'end']
expected: FAIL
[Property text-align-last value 'left']
expected: FAIL
[Property text-align-last value 'right']
expected: FAIL
[Property text-align-last value 'center']
expected: FAIL
[Property text-align-last value 'justify']
expected: FAIL
[Property text-align-last value 'match-parent']
expected: FAIL

View file

@ -1,24 +1,3 @@
[text-align-last-valid.html]
[e.style['text-align-last'\] = "auto" should set the property value]
expected: FAIL
[e.style['text-align-last'\] = "start" should set the property value]
expected: FAIL
[e.style['text-align-last'\] = "end" should set the property value]
expected: FAIL
[e.style['text-align-last'\] = "left" should set the property value]
expected: FAIL
[e.style['text-align-last'\] = "right" should set the property value]
expected: FAIL
[e.style['text-align-last'\] = "center" should set the property value]
expected: FAIL
[e.style['text-align-last'\] = "justify" should set the property value]
expected: FAIL
[e.style['text-align-last'\] = "match-parent" should set the property value]
expected: FAIL