LibWeb: Reset border-image to initial value when using border

Also includes associated handling for serialization of the `border`
shorthand.
This commit is contained in:
Callum Law
2025-09-15 11:40:27 +12:00
committed by Tim Ledbetter
parent 588c611e7e
commit 50239b58aa
Notes: github-actions[bot] 2025-09-15 07:43:28 +00:00
8 changed files with 161 additions and 14 deletions

View File

@@ -2,8 +2,7 @@ Harness status: OK
Found 3 tests
1 Pass
2 Fail
Fail Declaration with border longhands is not serialized to a border shorthand declaration.
Fail Declaration with border longhands and border-image is not serialized to a border shorthand declaration.
3 Pass
Pass Declaration with border longhands is not serialized to a border shorthand declaration.
Pass Declaration with border longhands and border-image is not serialized to a border shorthand declaration.
Pass Border shorthand is serialized correctly if all border-image-* are set to their initial specified values.

View File

@@ -2,13 +2,13 @@ Harness status: OK
Found 20 tests
14 Pass
6 Fail
15 Pass
5 Fail
Pass The serialization of border: 1px; border-top: 1px; should be canonical.
Pass The serialization of border: 1px solid red; should be canonical.
Pass The serialization of border: 1px red; should be canonical.
Pass The serialization of border: red; should be canonical.
Fail The serialization of border-top: 1px; border-right: 1px; border-bottom: 1px; border-left: 1px; border-image: none; should be canonical.
Pass The serialization of border-top: 1px; border-right: 1px; border-bottom: 1px; border-left: 1px; border-image: none; should be canonical.
Fail The serialization of border-top: 1px; border-right: 1px; border-bottom: 1px; border-left: 1px; should be canonical.
Fail The serialization of border-top: 1px; border-right: 2px; border-bottom: 3px; border-left: 4px; should be canonical.
Fail The serialization of border: 1px; border-top: 2px; should be canonical.