layout: Respond to shorthand property requests with real values (#31277)

* Respond to shorthand property requests with real values

Signed-off-by: Sebastian C <sebsebmc@gmail.com>

* Cleanup formatting and old comments

Signed-off-by: Sebastian C <sebsebmc@gmail.com>

* Update WPT expectations

Signed-off-by: Sebastian C <sebsebmc@gmail.com>

* Refactor out helper fn

Signed-off-by: Sebastian C <sebsebmc@gmail.com>

* Cleanup

Signed-off-by: Sebastian C <sebsebmc@gmail.com>

---------

Signed-off-by: Sebastian C <sebsebmc@gmail.com>
This commit is contained in:
Sebastian C 2024-02-10 17:15:17 -06:00 committed by GitHub
parent 0342d6beb0
commit 19667e117a
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
51 changed files with 155 additions and 1666 deletions

View file

@ -1,18 +0,0 @@
[calc-background-position-002.html]
[testing background-position: calc(2px + 3px) calc(4px + 5px)]
expected: FAIL
[testing background-position: calc(18px - 7px) calc(19px - 7px)]
expected: FAIL
[testing background-position: calc(4 * 5px) calc(6px * 4)]
expected: FAIL
[testing background-position: calc(100px / 4) calc(119px / 7)]
expected: FAIL
[testing background-position: calc(6px + 21%) calc(7em + 22%)]
expected: FAIL
[testing background-position: calc(-8px + 23%) calc(-9em + 24%)]
expected: FAIL

View file

@ -1,6 +1,3 @@
[getComputedStyle-border-radius-001.html]
[testing border-radius shorthand]
expected: FAIL
[testing border-radius: calc(25% + 10px) calc(25% + 16px) 25% 25px / calc(25% + 20px) calc(25% + 16px) 25% 25px]
expected: FAIL

View file

@ -1,6 +1,3 @@
[getComputedStyle-border-radius-003.html]
[testing border-radius shorthand]
expected: FAIL
[testing border-radius: calc(1% + 1px) calc(2% + 2px) calc(3% + 3px) calc(4% + 4px) / calc(5% + 5px) calc(6% + 6px) calc(7% + 7px) calc(8% + 8px)]
expected: FAIL

View file

@ -1,3 +0,0 @@
[getComputedStyle-calc-mixed-units-001.html]
[testing background-position: calc(100% - 100% + 20em)]
expected: FAIL

View file

@ -1,3 +0,0 @@
[minmax-percentage-serialize.html]
['min(1%, 2%, 3%) 0px' as a computed value should serialize as 'min(1%, 2%, 3%) 0px'.]
expected: FAIL