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,13 +1,4 @@
[logical-box-border-color.html]
[Test that border-inline-color shorthand sets longhands and serializes correctly.]
expected: FAIL
[Test that border-block-color shorthand sets longhands and serializes correctly.]
expected: FAIL
[Test that border-color shorthand sets longhands and serializes correctly.]
expected: FAIL
[Test that logical border-*-color properties share computed values with their physical associates, with 'writing-mode: horizontal-tb; direction: rtl; '.]
expected: FAIL

View file

@ -1,31 +1,7 @@
[logical-box-border-shorthands.html]
[Test that border-inline shorthand sets longhands and serializes correctly.]
expected: FAIL
[Test that border-block shorthand sets longhands and serializes correctly.]
expected: FAIL
[Test that border shorthand sets longhands and serializes correctly.]
expected: FAIL
[Test that logical border-* properties share computed values with their physical associates, with 'writing-mode: horizontal-tb; direction: ltr; '.]
expected: FAIL
[Test that border-* shorthands set the computed value of both logical and physical longhands, with 'writing-mode: horizontal-tb; direction: ltr; '.]
expected: FAIL
[Test that border-* properties honor order of appearance when both logical and physical associates are declared, with 'writing-mode: horizontal-tb; direction: ltr; '.]
expected: FAIL
[Test that border-* properties honor selector specificty when both logical and physical associates are declared, with 'writing-mode: horizontal-tb; direction: ltr; '.]
expected: FAIL
[Test that logical border-* properties share computed values with their physical associates, with 'writing-mode: horizontal-tb; direction: rtl; '.]
expected: FAIL
[Test that border-* shorthands set the computed value of both logical and physical longhands, with 'writing-mode: horizontal-tb; direction: rtl; '.]
expected: FAIL
[Test that border-* properties honor order of appearance when both logical and physical associates are declared, with 'writing-mode: horizontal-tb; direction: rtl; '.]
expected: FAIL

View file

@ -1,13 +1,4 @@
[logical-box-border-style.html]
[Test that border-inline-style shorthand sets longhands and serializes correctly.]
expected: FAIL
[Test that border-block-style shorthand sets longhands and serializes correctly.]
expected: FAIL
[Test that border-style shorthand sets longhands and serializes correctly.]
expected: FAIL
[Test that logical border-*-style properties share computed values with their physical associates, with 'writing-mode: horizontal-tb; direction: rtl; '.]
expected: FAIL

View file

@ -1,13 +1,4 @@
[logical-box-border-width.html]
[Test that border-inline-width shorthand sets longhands and serializes correctly.]
expected: FAIL
[Test that border-block-width shorthand sets longhands and serializes correctly.]
expected: FAIL
[Test that border-width shorthand sets longhands and serializes correctly.]
expected: FAIL
[Test that logical border-*-width properties share computed values with their physical associates, with 'writing-mode: horizontal-tb; direction: rtl; '.]
expected: FAIL

View file

@ -1,13 +1,4 @@
[logical-box-inset.html]
[Test that inset-inline shorthand sets longhands and serializes correctly.]
expected: FAIL
[Test that inset-block shorthand sets longhands and serializes correctly.]
expected: FAIL
[Test that inset shorthand sets longhands and serializes correctly.]
expected: FAIL
[Test that logical inset-* properties share computed values with their physical associates, with 'writing-mode: horizontal-tb; direction: rtl; '.]
expected: FAIL

View file

@ -1,13 +1,4 @@
[logical-box-margin.html]
[Test that margin-inline shorthand sets longhands and serializes correctly.]
expected: FAIL
[Test that margin-block shorthand sets longhands and serializes correctly.]
expected: FAIL
[Test that margin shorthand sets longhands and serializes correctly.]
expected: FAIL
[Test that logical margin-* properties share computed values with their physical associates, with 'writing-mode: horizontal-tb; direction: rtl; '.]
expected: FAIL

View file

@ -1,13 +1,4 @@
[logical-box-padding.html]
[Test that padding-inline shorthand sets longhands and serializes correctly.]
expected: FAIL
[Test that padding-block shorthand sets longhands and serializes correctly.]
expected: FAIL
[Test that padding shorthand sets longhands and serializes correctly.]
expected: FAIL
[Test that logical padding-* properties share computed values with their physical associates, with 'writing-mode: horizontal-tb; direction: rtl; '.]
expected: FAIL

View file

@ -1,12 +0,0 @@
[logicalprops-with-variables.html]
[Logical longhands with variables - margin-inline]
expected: FAIL
[Logical shorthand with 1 variable - margin-inline]
expected: FAIL
[Logical shorthand with 2 variables - margin-inline]
expected: FAIL
[Logical shorthand with 1 variable and 1 length - margin-inline]
expected: FAIL

View file

@ -1,12 +0,0 @@
[border-block-color-computed.html]
[Property border-block-color value 'rgb(34, 51, 68)']
expected: FAIL
[Property border-block-color value 'transparent rgb(2, 3, 4)']
expected: FAIL
[Property border-block-color value 'rgb(2, 3, 4) rgb(2, 3, 4)']
expected: FAIL
[Property border-block-color value 'currentcolor lime']
expected: FAIL

View file

@ -1,9 +0,0 @@
[border-block-style-computed.html]
[Property border-block-style value 'dotted']
expected: FAIL
[Property border-block-style value 'double groove']
expected: FAIL
[Property border-block-style value 'hidden hidden']
expected: FAIL

View file

@ -1,12 +0,0 @@
[border-block-width-computed.html]
[Property border-block-width value '10px']
expected: FAIL
[Property border-block-width value '10px 20px']
expected: FAIL
[Property border-block-width value '10px 10px']
expected: FAIL
[width is zero if the border block style is none or hidden]
expected: FAIL

View file

@ -1,12 +0,0 @@
[border-inline-color-computed.html]
[Property border-inline-color value 'rgb(34, 51, 68)']
expected: FAIL
[Property border-inline-color value 'transparent rgb(2, 3, 4)']
expected: FAIL
[Property border-inline-color value 'rgb(2, 3, 4) rgb(2, 3, 4)']
expected: FAIL
[Property border-inline-color value 'currentcolor lime']
expected: FAIL

View file

@ -1,9 +0,0 @@
[border-inline-style-computed.html]
[Property border-inline-style value 'dotted']
expected: FAIL
[Property border-inline-style value 'double groove']
expected: FAIL
[Property border-inline-style value 'hidden hidden']
expected: FAIL

View file

@ -1,12 +0,0 @@
[border-inline-width-computed.html]
[Property border-inline-width value '10px']
expected: FAIL
[Property border-inline-width value '10px 20px']
expected: FAIL
[Property border-inline-width value '10px 10px']
expected: FAIL
[width is zero if the border block style is none or hidden]
expected: FAIL

View file

@ -1,24 +0,0 @@
[inset-block-inline-computed.html]
[Property inset-block value 'auto']
expected: FAIL
[Property inset-block value '-10px']
expected: FAIL
[Property inset-block value 'calc(10px - 0.5em) -20%']
expected: FAIL
[Property inset-block value 'auto auto']
expected: FAIL
[Property inset-inline value '-20%']
expected: FAIL
[Property inset-inline value 'calc(10px - 0.5em)']
expected: FAIL
[Property inset-inline value '-10px auto']
expected: FAIL
[Property inset-inline value 'auto calc(10px + 0.5em)']
expected: FAIL

View file

@ -1,24 +0,0 @@
[inset-computed.html]
[Property inset value 'auto']
expected: FAIL
[Property inset value '-10px']
expected: FAIL
[Property inset value 'calc(10px - 0.5em) -20%']
expected: FAIL
[Property inset value 'auto auto']
expected: FAIL
[Property inset value '10px calc(10px - 0.5em) -30px']
expected: FAIL
[Property inset value 'auto auto auto']
expected: FAIL
[Property inset value '10px 20px auto -30px']
expected: FAIL
[Property inset value 'auto auto auto auto']
expected: FAIL

View file

@ -7,15 +7,3 @@
[Property margin-inline-end value 'calc(10% + 40px)']
expected: FAIL
[Property margin-block value '10px']
expected: FAIL
[Property margin-block value '10px 20px']
expected: FAIL
[Property margin-inline value '30px']
expected: FAIL
[Property margin-inline value '30px 40px']
expected: FAIL

View file

@ -13,15 +13,3 @@
[Property padding-inline-end value 'calc(10% + 40px)']
expected: FAIL
[Property padding-block value '10px']
expected: FAIL
[Property padding-block value '10px 20px']
expected: FAIL
[Property padding-inline value '30px']
expected: FAIL
[Property padding-inline value '30px 40px']
expected: FAIL