Convert layout to use Gecko's alignment style representation (#32790)

Signed-off-by: Nico Burns <nico@nicoburns.com>
Co-authored-by: Nico Burns <nico@nicoburns.com>
This commit is contained in:
Martin Robinson 2024-07-17 16:18:55 +02:00 committed by GitHub
parent a0d2b36ad8
commit 882a855b8c
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
80 changed files with 177 additions and 6482 deletions

View file

@ -1,51 +0,0 @@
[parse-align-items-001.html]
[Checking align-items: normal]
expected: FAIL
[Checking align-items: stretch]
expected: FAIL
[Checking align-items: start]
expected: FAIL
[Checking align-items: end]
expected: FAIL
[Checking align-items: self-start]
expected: FAIL
[Checking align-items: self-end]
expected: FAIL
[Checking align-items: center]
expected: FAIL
[Checking align-items: flex-start]
expected: FAIL
[Checking align-items: flex-end]
expected: FAIL
[Checking align-items: baseline]
expected: FAIL
[Checking align-items: first baseline]
expected: FAIL
[Checking align-items: last baseline]
expected: FAIL
[Checking align-items: safe flex-end]
expected: FAIL
[Checking align-items: unsafe end]
expected: FAIL
[Checking align-items: safe end]
expected: FAIL
[Checking align-items: unsafe flex-start]
expected: FAIL
[Checking align-items: safe center]
expected: FAIL

View file

@ -1,21 +0,0 @@
[parse-align-items-002.html]
[Test 'initial' value when nothing is specified]
expected: FAIL
[Test align-items: 'initial']
expected: FAIL
[Test grid items align-items: 'initial']
expected: FAIL
[Test flex items align-items: 'initial']
expected: FAIL
[Test absolute positioned elements align-items: 'initial']
expected: FAIL
[Test absolute positioned grid items align-items: 'initial']
expected: FAIL
[Test absolute positioned flex items align-items: 'initial']
expected: FAIL

View file

@ -1,51 +0,0 @@
[parse-align-items-003.html]
[Checking align-items: normal]
expected: FAIL
[Checking align-items: stretch]
expected: FAIL
[Checking align-items: start]
expected: FAIL
[Checking align-items: end]
expected: FAIL
[Checking align-items: self-start]
expected: FAIL
[Checking align-items: self-end]
expected: FAIL
[Checking align-items: center]
expected: FAIL
[Checking align-items: flex-start]
expected: FAIL
[Checking align-items: flex-end]
expected: FAIL
[Checking align-items: baseline]
expected: FAIL
[Checking align-items: first baseline]
expected: FAIL
[Checking align-items: last baseline]
expected: FAIL
[Checking align-items: safe flex-end]
expected: FAIL
[Checking align-items: unsafe end]
expected: FAIL
[Checking align-items: safe end]
expected: FAIL
[Checking align-items: unsafe flex-start]
expected: FAIL
[Checking align-items: safe center]
expected: FAIL

View file

@ -1,87 +0,0 @@
[parse-align-items-004.html]
[Checking invalid combination - align-items: auto]
expected: FAIL
[Checking invalid combination - align-items: legacy]
expected: FAIL
[Checking invalid combination - align-items: space-around]
expected: FAIL
[Checking invalid combination - align-items: left]
expected: FAIL
[Checking invalid combination - align-items: safe right]
expected: FAIL
[Checking invalid combination - align-items: auto safe]
expected: FAIL
[Checking invalid combination - align-items: auto left]
expected: FAIL
[Checking invalid combination - align-items: normal unsafe]
expected: FAIL
[Checking invalid combination - align-items: normal stretch]
expected: FAIL
[Checking invalid combination - align-items: baseline normal]
expected: FAIL
[Checking invalid combination - align-items: baseline center]
expected: FAIL
[Checking invalid combination - align-items: first baseline center]
expected: FAIL
[Checking invalid combination - align-items: last baseline center]
expected: FAIL
[Checking invalid combination - align-items: baseline last]
expected: FAIL
[Checking invalid combination - align-items: baseline first]
expected: FAIL
[Checking invalid combination - align-items: stretch unsafe]
expected: FAIL
[Checking invalid combination - align-items: stretch right]
expected: FAIL
[Checking invalid combination - align-items: unsafe unsafe]
expected: FAIL
[Checking invalid combination - align-items: unsafe safe]
expected: FAIL
[Checking invalid combination - align-items: center start]
expected: FAIL
[Checking invalid combination - align-items: unsafe stretch]
expected: FAIL
[Checking invalid combination - align-items: safe stretch]
expected: FAIL
[Checking invalid combination - align-items: baseline safe]
expected: FAIL
[Checking invalid combination - align-items: unsafe baseline]
expected: FAIL
[Checking invalid combination - align-items: unsafe safe left]
expected: FAIL
[Checking invalid combination - align-items: unsafe left safe]
expected: FAIL
[Checking invalid combination - align-items: left safe unsafe safe]
expected: FAIL
[Checking invalid combination - align-items: start safe]
expected: FAIL
[Checking invalid combination - align-items: safe]
expected: FAIL

View file

@ -1,9 +0,0 @@
[parse-align-items-005.html]
[Test the value 'inherit' overrides current value ('end')]
expected: FAIL
[Test the value 'inherit' overrides current value ('safe start')]
expected: FAIL
[Test the value 'inherit' overrides current value ('unsafe center')]
expected: FAIL

View file

@ -1,66 +0,0 @@
[parse-justify-items-001.html]
[Checking justify-items: normal]
expected: FAIL
[Checking justify-items: stretch]
expected: FAIL
[Checking justify-items: left]
expected: FAIL
[Checking justify-items: right]
expected: FAIL
[Checking justify-items: start]
expected: FAIL
[Checking justify-items: end]
expected: FAIL
[Checking justify-items: self-start]
expected: FAIL
[Checking justify-items: self-end]
expected: FAIL
[Checking justify-items: center]
expected: FAIL
[Checking justify-items: flex-start]
expected: FAIL
[Checking justify-items: flex-end]
expected: FAIL
[Checking justify-items: baseline]
expected: FAIL
[Checking justify-items: first baseline]
expected: FAIL
[Checking justify-items: last baseline]
expected: FAIL
[Checking justify-items: safe flex-end]
expected: FAIL
[Checking justify-items: unsafe end]
expected: FAIL
[Checking justify-items: safe end]
expected: FAIL
[Checking justify-items: unsafe flex-start]
expected: FAIL
[Checking justify-items: safe center]
expected: FAIL
[Checking justify-items: legacy left]
expected: FAIL
[Checking justify-items: legacy center]
expected: FAIL
[Checking justify-items: legacy right]
expected: FAIL

View file

@ -1,21 +0,0 @@
[parse-justify-items-002.html]
[Test 'initial' value when nothing is specified]
expected: FAIL
[Test justify-items: 'initial']
expected: FAIL
[Test grid items justify-items: 'initial']
expected: FAIL
[Test flex items justify-items: 'initial']
expected: FAIL
[Test absolute positioned elements justify-items: 'initial']
expected: FAIL
[Test absolute positioned grid items justify-items: 'initial']
expected: FAIL
[Test absolute positioned flex items justify-items: 'initial']
expected: FAIL

View file

@ -1,66 +0,0 @@
[parse-justify-items-003.html]
[Checking justify-items: normal]
expected: FAIL
[Checking justify-items: stretch]
expected: FAIL
[Checking justify-items: left]
expected: FAIL
[Checking justify-items: right]
expected: FAIL
[Checking justify-items: start]
expected: FAIL
[Checking justify-items: end]
expected: FAIL
[Checking justify-items: self-start]
expected: FAIL
[Checking justify-items: self-end]
expected: FAIL
[Checking justify-items: center]
expected: FAIL
[Checking justify-items: flex-start]
expected: FAIL
[Checking justify-items: flex-end]
expected: FAIL
[Checking justify-items: baseline]
expected: FAIL
[Checking justify-items: first baseline]
expected: FAIL
[Checking justify-items: last baseline]
expected: FAIL
[Checking justify-items: safe flex-end]
expected: FAIL
[Checking justify-items: unsafe end]
expected: FAIL
[Checking justify-items: safe end]
expected: FAIL
[Checking justify-items: unsafe flex-start]
expected: FAIL
[Checking justify-items: safe center]
expected: FAIL
[Checking justify-items: legacy left]
expected: FAIL
[Checking justify-items: legacy center]
expected: FAIL
[Checking justify-items: legacy right]
expected: FAIL

View file

@ -1,96 +0,0 @@
[parse-justify-items-004.html]
[Checking invalid combination - justify-items: auto]
expected: FAIL
[Checking invalid combination - justify-items: space-around]
expected: FAIL
[Checking invalid combination - justify-items: auto safe]
expected: FAIL
[Checking invalid combination - justify-items: auto left]
expected: FAIL
[Checking invalid combination - justify-items: normal unsafe]
expected: FAIL
[Checking invalid combination - justify-items: normal stretch]
expected: FAIL
[Checking invalid combination - justify-items: baseline normal]
expected: FAIL
[Checking invalid combination - justify-items: baseline center]
expected: FAIL
[Checking invalid combination - justify-items: first baseline center]
expected: FAIL
[Checking invalid combination - justify-items: last baseline center]
expected: FAIL
[Checking invalid combination - justify-items: baseline last]
expected: FAIL
[Checking invalid combination - justify-items: baseline first]
expected: FAIL
[Checking invalid combination - justify-items: stretch unsafe]
expected: FAIL
[Checking invalid combination - justify-items: stretch right]
expected: FAIL
[Checking invalid combination - justify-items: unsafe unsafe]
expected: FAIL
[Checking invalid combination - justify-items: unsafe safe]
expected: FAIL
[Checking invalid combination - justify-items: center start]
expected: FAIL
[Checking invalid combination - justify-items: unsafe stretch]
expected: FAIL
[Checking invalid combination - justify-items: safe stretch]
expected: FAIL
[Checking invalid combination - justify-items: baseline safe]
expected: FAIL
[Checking invalid combination - justify-items: unsafe baseline]
expected: FAIL
[Checking invalid combination - justify-items: unsafe safe left]
expected: FAIL
[Checking invalid combination - justify-items: unsafe left safe]
expected: FAIL
[Checking invalid combination - justify-items: left safe unsafe safe]
expected: FAIL
[Checking invalid combination - justify-items: start safe]
expected: FAIL
[Checking invalid combination - justify-items: safe]
expected: FAIL
[Checking invalid combination - justify-items: legacy start]
expected: FAIL
[Checking invalid combination - justify-items: legacy end]
expected: FAIL
[Checking invalid combination - justify-items: legacy right unsafe]
expected: FAIL
[Checking invalid combination - justify-items: legacy auto]
expected: FAIL
[Checking invalid combination - justify-items: legacy stretch]
expected: FAIL
[Checking invalid combination - justify-items: legacy left right]
expected: FAIL

View file

@ -1,9 +0,0 @@
[parse-justify-items-005.html]
[Test the value 'inherit' overrides current value ('end')]
expected: FAIL
[Test the value 'inherit' overrides current value ('safe left')]
expected: FAIL
[Test the value 'inherit' overrides current value ('unsafe center')]
expected: FAIL

View file

@ -1,51 +0,0 @@
[place-items-shorthand-001.html]
[Checking place-items: normal]
expected: FAIL
[Checking place-items: stretch]
expected: FAIL
[Checking place-items: start]
expected: FAIL
[Checking place-items: end]
expected: FAIL
[Checking place-items: self-start]
expected: FAIL
[Checking place-items: self-end]
expected: FAIL
[Checking place-items: center]
expected: FAIL
[Checking place-items: flex-start]
expected: FAIL
[Checking place-items: flex-end]
expected: FAIL
[Checking place-items: baseline]
expected: FAIL
[Checking place-items: first baseline]
expected: FAIL
[Checking place-items: last baseline]
expected: FAIL
[Checking place-items: safe flex-end]
expected: FAIL
[Checking place-items: unsafe end]
expected: FAIL
[Checking place-items: safe end]
expected: FAIL
[Checking place-items: unsafe flex-start]
expected: FAIL
[Checking place-items: safe center]
expected: FAIL

View file

@ -1,6 +0,0 @@
[place-items-shorthand-003.html]
[Check place-items: initial - align-items expanded value]
expected: FAIL
[Check place-items: initial - justify-items expanded value]
expected: FAIL

View file

@ -1,12 +0,0 @@
[place-items-shorthand-004.html]
[Verify fallback values are invalid]
expected: FAIL
[Verify 'left' and 'right' values are invalid for block/cross axis alignment]
expected: FAIL
[Verify numeric values are invalid]
expected: FAIL
[Verify empty declaration is invalid]
expected: FAIL

View file

@ -1,6 +0,0 @@
[place-items-shorthand-005.html]
[Check place-items: inherit - align-items resolved value]
expected: FAIL
[Check place-items: inherit - justify-items resolved value]
expected: FAIL

View file

@ -1,108 +0,0 @@
[place-items-shorthand-006.html]
[Checking place-items: normal normal]
expected: FAIL
[Checking place-items: normal first baseline]
expected: FAIL
[Checking place-items: stretch stretch]
expected: FAIL
[Checking place-items: stretch first baseline]
expected: FAIL
[Checking place-items: start start]
expected: FAIL
[Checking place-items: start first baseline]
expected: FAIL
[Checking place-items: end end]
expected: FAIL
[Checking place-items: end first baseline]
expected: FAIL
[Checking place-items: self-start self-start]
expected: FAIL
[Checking place-items: self-start first baseline]
expected: FAIL
[Checking place-items: self-end self-end]
expected: FAIL
[Checking place-items: self-end first baseline]
expected: FAIL
[Checking place-items: center center]
expected: FAIL
[Checking place-items: center first baseline]
expected: FAIL
[Checking place-items: flex-start flex-start]
expected: FAIL
[Checking place-items: flex-start first baseline]
expected: FAIL
[Checking place-items: flex-end flex-end]
expected: FAIL
[Checking place-items: flex-end first baseline]
expected: FAIL
[Checking place-items: baseline baseline]
expected: FAIL
[Checking place-items: baseline first baseline]
expected: FAIL
[Checking place-items: first baseline left]
expected: FAIL
[Checking place-items: first baseline right]
expected: FAIL
[Checking place-items: first baseline normal]
expected: FAIL
[Checking place-items: first baseline stretch]
expected: FAIL
[Checking place-items: first baseline start]
expected: FAIL
[Checking place-items: first baseline end]
expected: FAIL
[Checking place-items: first baseline self-start]
expected: FAIL
[Checking place-items: first baseline self-end]
expected: FAIL
[Checking place-items: first baseline center]
expected: FAIL
[Checking place-items: first baseline flex-start]
expected: FAIL
[Checking place-items: first baseline flex-end]
expected: FAIL
[Checking place-items: first baseline baseline]
expected: FAIL
[Checking place-items: first baseline first baseline]
expected: FAIL
[Checking place-items: first baseline last baseline]
expected: FAIL
[Checking place-items: last baseline first baseline]
expected: FAIL
[Checking place-items: last baseline last baseline]
expected: FAIL

View file

@ -1,51 +0,0 @@
[shorthand-serialization-001.html]
[test shorthand serialization {"alignContent":"center","shorthand":"center normal"}]
expected: FAIL
[test shorthand serialization {"alignContent":"baseline safe right","shorthand":""}]
expected: FAIL
[test shorthand serialization {"justifyContent":"safe start","shorthand":"normal safe start"}]
expected: FAIL
[test shorthand serialization {"justifyContent":"unsafe start","shorthand":["normal unsafe start"\]}]
expected: FAIL
[test shorthand serialization {"justifyContent":"space-evenly start","shorthand":""}]
expected: FAIL
[test shorthand serialization {"alignContent":"start","justifyContent":"end","shorthand":"start end"}]
expected: FAIL
[test shorthand serialization {"alignItems":"center","shorthand":"center legacy"}]
expected: FAIL
[test shorthand serialization {"alignItems":"baseline","shorthand":"baseline legacy"}]
expected: FAIL
[test shorthand serialization {"justifyItems":"safe start","shorthand":"normal safe start"}]
expected: FAIL
[test shorthand serialization {"justifyItems":"unsafe start","shorthand":["normal unsafe start"\]}]
expected: FAIL
[test shorthand serialization {"justifyItems":"stretch","shorthand":"normal stretch"}]
expected: FAIL
[test shorthand serialization {"justifyItems":"left legacy","shorthand":"normal legacy left"}]
expected: FAIL
[test shorthand serialization {"alignItems":"stretch","justifyItems":"end","shorthand":"stretch end"}]
expected: FAIL
[test shorthand serialization {"alignSelf":"self-end safe","shorthand":""}]
expected: FAIL
[test shorthand serialization {"justifySelf":"unsafe start","shorthand":["auto start","auto unsafe start"\]}]
expected: FAIL
[test shorthand serialization {"justifySelf":"last baseline start","shorthand":""}]
expected: FAIL
[test shorthand serialization {"alignSelf":"baseline","justifySelf":"last baseline","shorthand":"baseline last baseline"}]
expected: FAIL