Add basic support for text-align: justify (#30807)

This also enables parsing of `text-justify` for non-legacy layout,
though only None is supported (disabling justification).
This commit is contained in:
Martin Robinson 2023-12-15 15:00:13 +01:00 committed by GitHub
parent 0be30b30ce
commit ccf0b739df
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
18 changed files with 154 additions and 417 deletions

View file

@ -1,2 +0,0 @@
[text-align-white-space-002.xht]
expected: FAIL

View file

@ -1,2 +0,0 @@
[word-spacing-justify-001.xht]
expected: FAIL

View file

@ -35,9 +35,6 @@
[Property text-align-last inherits]
expected: FAIL
[Property text-justify inherits]
expected: FAIL
[Property text-wrap has initial value wrap]
expected: FAIL
@ -50,9 +47,6 @@
[Property overflow-wrap inherits]
expected: FAIL
[Property text-justify has initial value auto]
expected: FAIL
[Property text-transform has initial value none]
expected: FAIL

View file

@ -1,3 +0,0 @@
[text-justify-computed-legacy.html]
[Property text-justify value 'distribute']
expected: FAIL

View file

@ -1,12 +0,0 @@
[text-justify-computed.html]
[Property text-justify value 'auto']
expected: FAIL
[Property text-justify value 'none']
expected: FAIL
[Property text-justify value 'inter-word']
expected: FAIL
[Property text-justify value 'inter-character']
expected: FAIL

View file

@ -1,12 +0,0 @@
[text-justify-valid.html]
[e.style['text-justify'\] = "auto" should set the property value]
expected: FAIL
[e.style['text-justify'\] = "none" should set the property value]
expected: FAIL
[e.style['text-justify'\] = "inter-word" should set the property value]
expected: FAIL
[e.style['text-justify'\] = "inter-character" should set the property value]
expected: FAIL

View file

@ -1,2 +0,0 @@
[text-align-justify-002.html]
expected: FAIL

View file

@ -1,2 +0,0 @@
[text-align-justify-004.html]
expected: FAIL

View file

@ -1,2 +0,0 @@
[text-align-justify-006.html]
expected: FAIL

View file

@ -0,0 +1,2 @@
[text-align-justify-tabs-001.html]
expected: FAIL

View file

@ -1,3 +0,0 @@
[distribute-alias.tentative.html]
[text-justify: distribute is a parse-time alias of inter-character]
expected: FAIL

View file

@ -1,22 +1,4 @@
[text-justify-interpolation.html]
[CSS Transitions: property <text-justify> from [auto\] to [inter-word\] at (-0.3) should be [inter-word\]]
expected: FAIL
[CSS Transitions: property <text-justify> from [auto\] to [inter-word\] at (0) should be [inter-word\]]
expected: FAIL
[CSS Transitions: property <text-justify> from [auto\] to [inter-word\] at (0.3) should be [inter-word\]]
expected: FAIL
[CSS Transitions with transition: all: property <text-justify> from [auto\] to [inter-word\] at (-0.3) should be [inter-word\]]
expected: FAIL
[CSS Transitions with transition: all: property <text-justify> from [auto\] to [inter-word\] at (0) should be [inter-word\]]
expected: FAIL
[CSS Transitions with transition: all: property <text-justify> from [auto\] to [inter-word\] at (0.3) should be [inter-word\]]
expected: FAIL
[Web Animations: property <text-justify> from [auto\] to [inter-word\] at (-0.3) should be [auto\]]
expected: FAIL
@ -38,69 +20,6 @@
[Web Animations: property <text-justify> from [auto\] to [inter-word\] at (1.5) should be [inter-word\]]
expected: FAIL
[CSS Transitions: property <text-justify> from [auto\] to [inter-character\] at (-0.3) should be [inter-character\]]
expected: FAIL
[CSS Transitions: property <text-justify> from [auto\] to [inter-character\] at (0) should be [inter-character\]]
expected: FAIL
[CSS Transitions: property <text-justify> from [auto\] to [inter-character\] at (0.3) should be [inter-character\]]
expected: FAIL
[CSS Transitions: property <text-justify> from [auto\] to [inter-character\] at (0.5) should be [inter-character\]]
expected: FAIL
[CSS Transitions: property <text-justify> from [auto\] to [inter-character\] at (0.6) should be [inter-character\]]
expected: FAIL
[CSS Transitions: property <text-justify> from [auto\] to [inter-character\] at (1) should be [inter-character\]]
expected: FAIL
[CSS Transitions: property <text-justify> from [auto\] to [inter-character\] at (1.5) should be [inter-character\]]
expected: FAIL
[CSS Transitions with transition: all: property <text-justify> from [auto\] to [inter-character\] at (-0.3) should be [inter-character\]]
expected: FAIL
[CSS Transitions with transition: all: property <text-justify> from [auto\] to [inter-character\] at (0) should be [inter-character\]]
expected: FAIL
[CSS Transitions with transition: all: property <text-justify> from [auto\] to [inter-character\] at (0.3) should be [inter-character\]]
expected: FAIL
[CSS Transitions with transition: all: property <text-justify> from [auto\] to [inter-character\] at (0.5) should be [inter-character\]]
expected: FAIL
[CSS Transitions with transition: all: property <text-justify> from [auto\] to [inter-character\] at (0.6) should be [inter-character\]]
expected: FAIL
[CSS Transitions with transition: all: property <text-justify> from [auto\] to [inter-character\] at (1) should be [inter-character\]]
expected: FAIL
[CSS Transitions with transition: all: property <text-justify> from [auto\] to [inter-character\] at (1.5) should be [inter-character\]]
expected: FAIL
[CSS Animations: property <text-justify> from [auto\] to [inter-character\] at (-0.3) should be [auto\]]
expected: FAIL
[CSS Animations: property <text-justify> from [auto\] to [inter-character\] at (0) should be [auto\]]
expected: FAIL
[CSS Animations: property <text-justify> from [auto\] to [inter-character\] at (0.3) should be [auto\]]
expected: FAIL
[CSS Animations: property <text-justify> from [auto\] to [inter-character\] at (0.5) should be [inter-character\]]
expected: FAIL
[CSS Animations: property <text-justify> from [auto\] to [inter-character\] at (0.6) should be [inter-character\]]
expected: FAIL
[CSS Animations: property <text-justify> from [auto\] to [inter-character\] at (1) should be [inter-character\]]
expected: FAIL
[CSS Animations: property <text-justify> from [auto\] to [inter-character\] at (1.5) should be [inter-character\]]
expected: FAIL
[Web Animations: property <text-justify> from [auto\] to [inter-character\] at (-0.3) should be [auto\]]
expected: FAIL
@ -122,69 +41,6 @@
[Web Animations: property <text-justify> from [auto\] to [inter-character\] at (1.5) should be [inter-character\]]
expected: FAIL
[CSS Transitions: property <text-justify> from [inter-character\] to [distribute\] at (-0.3) should be [distribute\]]
expected: FAIL
[CSS Transitions: property <text-justify> from [inter-character\] to [distribute\] at (0) should be [distribute\]]
expected: FAIL
[CSS Transitions: property <text-justify> from [inter-character\] to [distribute\] at (0.3) should be [distribute\]]
expected: FAIL
[CSS Transitions: property <text-justify> from [inter-character\] to [distribute\] at (0.5) should be [distribute\]]
expected: FAIL
[CSS Transitions: property <text-justify> from [inter-character\] to [distribute\] at (0.6) should be [distribute\]]
expected: FAIL
[CSS Transitions: property <text-justify> from [inter-character\] to [distribute\] at (1) should be [distribute\]]
expected: FAIL
[CSS Transitions: property <text-justify> from [inter-character\] to [distribute\] at (1.5) should be [distribute\]]
expected: FAIL
[CSS Transitions with transition: all: property <text-justify> from [inter-character\] to [distribute\] at (-0.3) should be [distribute\]]
expected: FAIL
[CSS Transitions with transition: all: property <text-justify> from [inter-character\] to [distribute\] at (0) should be [distribute\]]
expected: FAIL
[CSS Transitions with transition: all: property <text-justify> from [inter-character\] to [distribute\] at (0.3) should be [distribute\]]
expected: FAIL
[CSS Transitions with transition: all: property <text-justify> from [inter-character\] to [distribute\] at (0.5) should be [distribute\]]
expected: FAIL
[CSS Transitions with transition: all: property <text-justify> from [inter-character\] to [distribute\] at (0.6) should be [distribute\]]
expected: FAIL
[CSS Transitions with transition: all: property <text-justify> from [inter-character\] to [distribute\] at (1) should be [distribute\]]
expected: FAIL
[CSS Transitions with transition: all: property <text-justify> from [inter-character\] to [distribute\] at (1.5) should be [distribute\]]
expected: FAIL
[CSS Animations: property <text-justify> from [inter-character\] to [distribute\] at (-0.3) should be [inter-character\]]
expected: FAIL
[CSS Animations: property <text-justify> from [inter-character\] to [distribute\] at (0) should be [inter-character\]]
expected: FAIL
[CSS Animations: property <text-justify> from [inter-character\] to [distribute\] at (0.3) should be [inter-character\]]
expected: FAIL
[CSS Animations: property <text-justify> from [inter-character\] to [distribute\] at (0.5) should be [distribute\]]
expected: FAIL
[CSS Animations: property <text-justify> from [inter-character\] to [distribute\] at (0.6) should be [distribute\]]
expected: FAIL
[CSS Animations: property <text-justify> from [inter-character\] to [distribute\] at (1) should be [distribute\]]
expected: FAIL
[CSS Animations: property <text-justify> from [inter-character\] to [distribute\] at (1.5) should be [distribute\]]
expected: FAIL
[Web Animations: property <text-justify> from [inter-character\] to [distribute\] at (-0.3) should be [inter-character\]]
expected: FAIL
@ -206,69 +62,6 @@
[Web Animations: property <text-justify> from [inter-character\] to [distribute\] at (1.5) should be [distribute\]]
expected: FAIL
[CSS Transitions: property <text-justify> from [inter-word\] to [distribute\] at (-0.3) should be [distribute\]]
expected: FAIL
[CSS Transitions: property <text-justify> from [inter-word\] to [distribute\] at (0) should be [distribute\]]
expected: FAIL
[CSS Transitions: property <text-justify> from [inter-word\] to [distribute\] at (0.3) should be [distribute\]]
expected: FAIL
[CSS Transitions: property <text-justify> from [inter-word\] to [distribute\] at (0.5) should be [distribute\]]
expected: FAIL
[CSS Transitions: property <text-justify> from [inter-word\] to [distribute\] at (0.6) should be [distribute\]]
expected: FAIL
[CSS Transitions: property <text-justify> from [inter-word\] to [distribute\] at (1) should be [distribute\]]
expected: FAIL
[CSS Transitions: property <text-justify> from [inter-word\] to [distribute\] at (1.5) should be [distribute\]]
expected: FAIL
[CSS Transitions with transition: all: property <text-justify> from [inter-word\] to [distribute\] at (-0.3) should be [distribute\]]
expected: FAIL
[CSS Transitions with transition: all: property <text-justify> from [inter-word\] to [distribute\] at (0) should be [distribute\]]
expected: FAIL
[CSS Transitions with transition: all: property <text-justify> from [inter-word\] to [distribute\] at (0.3) should be [distribute\]]
expected: FAIL
[CSS Transitions with transition: all: property <text-justify> from [inter-word\] to [distribute\] at (0.5) should be [distribute\]]
expected: FAIL
[CSS Transitions with transition: all: property <text-justify> from [inter-word\] to [distribute\] at (0.6) should be [distribute\]]
expected: FAIL
[CSS Transitions with transition: all: property <text-justify> from [inter-word\] to [distribute\] at (1) should be [distribute\]]
expected: FAIL
[CSS Transitions with transition: all: property <text-justify> from [inter-word\] to [distribute\] at (1.5) should be [distribute\]]
expected: FAIL
[CSS Animations: property <text-justify> from [inter-word\] to [distribute\] at (-0.3) should be [inter-word\]]
expected: FAIL
[CSS Animations: property <text-justify> from [inter-word\] to [distribute\] at (0) should be [inter-word\]]
expected: FAIL
[CSS Animations: property <text-justify> from [inter-word\] to [distribute\] at (0.3) should be [inter-word\]]
expected: FAIL
[CSS Animations: property <text-justify> from [inter-word\] to [distribute\] at (0.5) should be [distribute\]]
expected: FAIL
[CSS Animations: property <text-justify> from [inter-word\] to [distribute\] at (0.6) should be [distribute\]]
expected: FAIL
[CSS Animations: property <text-justify> from [inter-word\] to [distribute\] at (1) should be [distribute\]]
expected: FAIL
[CSS Animations: property <text-justify> from [inter-word\] to [distribute\] at (1.5) should be [distribute\]]
expected: FAIL
[Web Animations: property <text-justify> from [inter-word\] to [distribute\] at (-0.3) should be [inter-word\]]
expected: FAIL
@ -290,69 +83,6 @@
[Web Animations: property <text-justify> from [inter-word\] to [distribute\] at (1.5) should be [distribute\]]
expected: FAIL
[CSS Transitions: property <text-justify> from [distribute\] to [none\] at (-0.3) should be [none\]]
expected: FAIL
[CSS Transitions: property <text-justify> from [distribute\] to [none\] at (0) should be [none\]]
expected: FAIL
[CSS Transitions: property <text-justify> from [distribute\] to [none\] at (0.3) should be [none\]]
expected: FAIL
[CSS Transitions: property <text-justify> from [distribute\] to [none\] at (0.5) should be [none\]]
expected: FAIL
[CSS Transitions: property <text-justify> from [distribute\] to [none\] at (0.6) should be [none\]]
expected: FAIL
[CSS Transitions: property <text-justify> from [distribute\] to [none\] at (1) should be [none\]]
expected: FAIL
[CSS Transitions: property <text-justify> from [distribute\] to [none\] at (1.5) should be [none\]]
expected: FAIL
[CSS Transitions with transition: all: property <text-justify> from [distribute\] to [none\] at (-0.3) should be [none\]]
expected: FAIL
[CSS Transitions with transition: all: property <text-justify> from [distribute\] to [none\] at (0) should be [none\]]
expected: FAIL
[CSS Transitions with transition: all: property <text-justify> from [distribute\] to [none\] at (0.3) should be [none\]]
expected: FAIL
[CSS Transitions with transition: all: property <text-justify> from [distribute\] to [none\] at (0.5) should be [none\]]
expected: FAIL
[CSS Transitions with transition: all: property <text-justify> from [distribute\] to [none\] at (0.6) should be [none\]]
expected: FAIL
[CSS Transitions with transition: all: property <text-justify> from [distribute\] to [none\] at (1) should be [none\]]
expected: FAIL
[CSS Transitions with transition: all: property <text-justify> from [distribute\] to [none\] at (1.5) should be [none\]]
expected: FAIL
[CSS Animations: property <text-justify> from [distribute\] to [none\] at (-0.3) should be [distribute\]]
expected: FAIL
[CSS Animations: property <text-justify> from [distribute\] to [none\] at (0) should be [distribute\]]
expected: FAIL
[CSS Animations: property <text-justify> from [distribute\] to [none\] at (0.3) should be [distribute\]]
expected: FAIL
[CSS Animations: property <text-justify> from [distribute\] to [none\] at (0.5) should be [none\]]
expected: FAIL
[CSS Animations: property <text-justify> from [distribute\] to [none\] at (0.6) should be [none\]]
expected: FAIL
[CSS Animations: property <text-justify> from [distribute\] to [none\] at (1) should be [none\]]
expected: FAIL
[CSS Animations: property <text-justify> from [distribute\] to [none\] at (1.5) should be [none\]]
expected: FAIL
[Web Animations: property <text-justify> from [distribute\] to [none\] at (-0.3) should be [distribute\]]
expected: FAIL
@ -383,51 +113,6 @@
[CSS Transitions: property <text-justify> from [auto\] to [inter-word\] at (0.3) should be [auto\]]
expected: FAIL
[CSS Transitions: property <text-justify> from [auto\] to [inter-word\] at (0.5) should be [inter-word\]]
expected: FAIL
[CSS Transitions: property <text-justify> from [auto\] to [inter-word\] at (0.6) should be [inter-word\]]
expected: FAIL
[CSS Transitions: property <text-justify> from [auto\] to [inter-word\] at (1) should be [inter-word\]]
expected: FAIL
[CSS Transitions: property <text-justify> from [auto\] to [inter-word\] at (1.5) should be [inter-word\]]
expected: FAIL
[CSS Transitions with transition: all: property <text-justify> from [auto\] to [inter-word\] at (0.5) should be [inter-word\]]
expected: FAIL
[CSS Transitions with transition: all: property <text-justify> from [auto\] to [inter-word\] at (0.6) should be [inter-word\]]
expected: FAIL
[CSS Transitions with transition: all: property <text-justify> from [auto\] to [inter-word\] at (1) should be [inter-word\]]
expected: FAIL
[CSS Transitions with transition: all: property <text-justify> from [auto\] to [inter-word\] at (1.5) should be [inter-word\]]
expected: FAIL
[CSS Animations: property <text-justify> from [auto\] to [inter-word\] at (-0.3) should be [auto\]]
expected: FAIL
[CSS Animations: property <text-justify> from [auto\] to [inter-word\] at (0) should be [auto\]]
expected: FAIL
[CSS Animations: property <text-justify> from [auto\] to [inter-word\] at (0.3) should be [auto\]]
expected: FAIL
[CSS Animations: property <text-justify> from [auto\] to [inter-word\] at (0.5) should be [inter-word\]]
expected: FAIL
[CSS Animations: property <text-justify> from [auto\] to [inter-word\] at (0.6) should be [inter-word\]]
expected: FAIL
[CSS Animations: property <text-justify> from [auto\] to [inter-word\] at (1) should be [inter-word\]]
expected: FAIL
[CSS Animations: property <text-justify> from [auto\] to [inter-word\] at (1.5) should be [inter-word\]]
expected: FAIL
[CSS Transitions: property <text-justify> from [auto\] to [inter-character\] at (-0.3) should be [auto\]]
expected: FAIL

View file

@ -1,2 +0,0 @@
[text_align_complex_a.html]
expected: FAIL

View file

@ -1,2 +0,0 @@
[text_align_justify_a.html]
expected: FAIL