Permalink
Show file tree
Hide file tree
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
border-image-* returns the initial keyword instead of the initial val…
…ue when setting border-image shorthand https://bugs.webkit.org/show_bug.cgi?id=244657 rdar://problem/99420050 Reviewed by Sam Weinig. * LayoutTests/fast/borders/border-image-legacy.html: Expect initial values instead of the keyword "initial" for specified style. * LayoutTests/imported/w3c/web-platform-tests/css/css-backgrounds/parsing/border-image-shorthand.sub-expected.txt: Expect PASS. * LayoutTests/platform/glib/imported/w3c/web-platform-tests/css/css-backgrounds/parsing/border-image-shorthand.sub-expected.txt: Ditto. * Source/WebCore/css/StyleProperties.cpp: (WebCore::StyleProperties::borderImagePropertyValue const): Change the code that checks for implicit values to not require use of the initial keyword. * Source/WebCore/css/parser/CSSPropertyParser.cpp: (WebCore::CSSPropertyParser::consumeBorderImage): Set initial values using the actual values rather than the initial keyword. Canonical link: https://commits.webkit.org/257119@main
- Loading branch information
Showing
5 changed files
with
75 additions
and
65 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,32 +1,32 @@ | ||
|
||
FAIL e.style['border-image'] = "none" should set border-image-outset assert_equals: border-image-outset should be canonical expected "0" but got "initial" | ||
FAIL e.style['border-image'] = "none" should set border-image-repeat assert_equals: border-image-repeat should be canonical expected "stretch" but got "initial" | ||
FAIL e.style['border-image'] = "none" should set border-image-slice assert_equals: border-image-slice should be canonical expected "100%" but got "initial" | ||
PASS e.style['border-image'] = "none" should set border-image-outset | ||
PASS e.style['border-image'] = "none" should set border-image-repeat | ||
PASS e.style['border-image'] = "none" should set border-image-slice | ||
PASS e.style['border-image'] = "none" should set border-image-source | ||
FAIL e.style['border-image'] = "none" should set border-image-width assert_equals: border-image-width should be canonical expected "1" but got "initial" | ||
PASS e.style['border-image'] = "none" should set border-image-width | ||
PASS e.style['border-image'] = "none" should not set unrelated longhands | ||
FAIL e.style['border-image'] = "url(\"http://localhost/\") 1 2 3 4 fill" should set border-image-outset assert_equals: border-image-outset should be canonical expected "0" but got "initial" | ||
FAIL e.style['border-image'] = "url(\"http://localhost/\") 1 2 3 4 fill" should set border-image-repeat assert_equals: border-image-repeat should be canonical expected "stretch" but got "initial" | ||
PASS e.style['border-image'] = "url(\"http://localhost/\") 1 2 3 4 fill" should set border-image-outset | ||
PASS e.style['border-image'] = "url(\"http://localhost/\") 1 2 3 4 fill" should set border-image-repeat | ||
PASS e.style['border-image'] = "url(\"http://localhost/\") 1 2 3 4 fill" should set border-image-slice | ||
PASS e.style['border-image'] = "url(\"http://localhost/\") 1 2 3 4 fill" should set border-image-source | ||
FAIL e.style['border-image'] = "url(\"http://localhost/\") 1 2 3 4 fill" should set border-image-width assert_equals: border-image-width should be canonical expected "1" but got "initial" | ||
PASS e.style['border-image'] = "url(\"http://localhost/\") 1 2 3 4 fill" should set border-image-width | ||
PASS e.style['border-image'] = "url(\"http://localhost/\") 1 2 3 4 fill" should not set unrelated longhands | ||
FAIL e.style['border-image'] = "repeat round" should set border-image-outset assert_equals: border-image-outset should be canonical expected "0" but got "initial" | ||
PASS e.style['border-image'] = "repeat round" should set border-image-outset | ||
PASS e.style['border-image'] = "repeat round" should set border-image-repeat | ||
FAIL e.style['border-image'] = "repeat round" should set border-image-slice assert_equals: border-image-slice should be canonical expected "100%" but got "initial" | ||
FAIL e.style['border-image'] = "repeat round" should set border-image-source assert_equals: border-image-source should be canonical expected "none" but got "initial" | ||
FAIL e.style['border-image'] = "repeat round" should set border-image-width assert_equals: border-image-width should be canonical expected "1" but got "initial" | ||
PASS e.style['border-image'] = "repeat round" should set border-image-slice | ||
PASS e.style['border-image'] = "repeat round" should set border-image-source | ||
PASS e.style['border-image'] = "repeat round" should set border-image-width | ||
PASS e.style['border-image'] = "repeat round" should not set unrelated longhands | ||
FAIL e.style['border-image'] = "url(\"http://localhost/\") fill 1 2% 3 4%" should set border-image-outset assert_equals: border-image-outset should be canonical expected "0" but got "initial" | ||
FAIL e.style['border-image'] = "url(\"http://localhost/\") fill 1 2% 3 4%" should set border-image-repeat assert_equals: border-image-repeat should be canonical expected "stretch" but got "initial" | ||
PASS e.style['border-image'] = "url(\"http://localhost/\") fill 1 2% 3 4%" should set border-image-outset | ||
PASS e.style['border-image'] = "url(\"http://localhost/\") fill 1 2% 3 4%" should set border-image-repeat | ||
PASS e.style['border-image'] = "url(\"http://localhost/\") fill 1 2% 3 4%" should set border-image-slice | ||
PASS e.style['border-image'] = "url(\"http://localhost/\") fill 1 2% 3 4%" should set border-image-source | ||
FAIL e.style['border-image'] = "url(\"http://localhost/\") fill 1 2% 3 4%" should set border-image-width assert_equals: border-image-width should be canonical expected "1" but got "initial" | ||
PASS e.style['border-image'] = "url(\"http://localhost/\") fill 1 2% 3 4%" should set border-image-width | ||
PASS e.style['border-image'] = "url(\"http://localhost/\") fill 1 2% 3 4%" should not set unrelated longhands | ||
PASS e.style['border-image'] = "1 2% 3 4% / 5% / 6" should set border-image-outset | ||
FAIL e.style['border-image'] = "1 2% 3 4% / 5% / 6" should set border-image-repeat assert_equals: border-image-repeat should be canonical expected "stretch" but got "initial" | ||
PASS e.style['border-image'] = "1 2% 3 4% / 5% / 6" should set border-image-repeat | ||
PASS e.style['border-image'] = "1 2% 3 4% / 5% / 6" should set border-image-slice | ||
FAIL e.style['border-image'] = "1 2% 3 4% / 5% / 6" should set border-image-source assert_equals: border-image-source should be canonical expected "none" but got "initial" | ||
PASS e.style['border-image'] = "1 2% 3 4% / 5% / 6" should set border-image-source | ||
PASS e.style['border-image'] = "1 2% 3 4% / 5% / 6" should set border-image-width | ||
PASS e.style['border-image'] = "1 2% 3 4% / 5% / 6" should not set unrelated longhands | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,32 +1,32 @@ | ||
|
||
FAIL e.style['border-image'] = "none" should set border-image-outset assert_equals: border-image-outset should be canonical expected "0" but got "initial" | ||
FAIL e.style['border-image'] = "none" should set border-image-repeat assert_equals: border-image-repeat should be canonical expected "stretch" but got "initial" | ||
FAIL e.style['border-image'] = "none" should set border-image-slice assert_equals: border-image-slice should be canonical expected "100%" but got "initial" | ||
PASS e.style['border-image'] = "none" should set border-image-outset | ||
PASS e.style['border-image'] = "none" should set border-image-repeat | ||
PASS e.style['border-image'] = "none" should set border-image-slice | ||
PASS e.style['border-image'] = "none" should set border-image-source | ||
FAIL e.style['border-image'] = "none" should set border-image-width assert_equals: border-image-width should be canonical expected "1" but got "initial" | ||
PASS e.style['border-image'] = "none" should set border-image-width | ||
PASS e.style['border-image'] = "none" should not set unrelated longhands | ||
FAIL e.style['border-image'] = "url(\"http://web-platform.test/\") 1 2 3 4 fill" should set border-image-outset assert_equals: border-image-outset should be canonical expected "0" but got "initial" | ||
FAIL e.style['border-image'] = "url(\"http://web-platform.test/\") 1 2 3 4 fill" should set border-image-repeat assert_equals: border-image-repeat should be canonical expected "stretch" but got "initial" | ||
PASS e.style['border-image'] = "url(\"http://web-platform.test/\") 1 2 3 4 fill" should set border-image-outset | ||
PASS e.style['border-image'] = "url(\"http://web-platform.test/\") 1 2 3 4 fill" should set border-image-repeat | ||
PASS e.style['border-image'] = "url(\"http://web-platform.test/\") 1 2 3 4 fill" should set border-image-slice | ||
PASS e.style['border-image'] = "url(\"http://web-platform.test/\") 1 2 3 4 fill" should set border-image-source | ||
FAIL e.style['border-image'] = "url(\"http://web-platform.test/\") 1 2 3 4 fill" should set border-image-width assert_equals: border-image-width should be canonical expected "1" but got "initial" | ||
PASS e.style['border-image'] = "url(\"http://web-platform.test/\") 1 2 3 4 fill" should set border-image-width | ||
PASS e.style['border-image'] = "url(\"http://web-platform.test/\") 1 2 3 4 fill" should not set unrelated longhands | ||
FAIL e.style['border-image'] = "repeat round" should set border-image-outset assert_equals: border-image-outset should be canonical expected "0" but got "initial" | ||
PASS e.style['border-image'] = "repeat round" should set border-image-outset | ||
PASS e.style['border-image'] = "repeat round" should set border-image-repeat | ||
FAIL e.style['border-image'] = "repeat round" should set border-image-slice assert_equals: border-image-slice should be canonical expected "100%" but got "initial" | ||
FAIL e.style['border-image'] = "repeat round" should set border-image-source assert_equals: border-image-source should be canonical expected "none" but got "initial" | ||
FAIL e.style['border-image'] = "repeat round" should set border-image-width assert_equals: border-image-width should be canonical expected "1" but got "initial" | ||
PASS e.style['border-image'] = "repeat round" should set border-image-slice | ||
PASS e.style['border-image'] = "repeat round" should set border-image-source | ||
PASS e.style['border-image'] = "repeat round" should set border-image-width | ||
PASS e.style['border-image'] = "repeat round" should not set unrelated longhands | ||
FAIL e.style['border-image'] = "url(\"http://web-platform.test/\") fill 1 2% 3 4%" should set border-image-outset assert_equals: border-image-outset should be canonical expected "0" but got "initial" | ||
FAIL e.style['border-image'] = "url(\"http://web-platform.test/\") fill 1 2% 3 4%" should set border-image-repeat assert_equals: border-image-repeat should be canonical expected "stretch" but got "initial" | ||
PASS e.style['border-image'] = "url(\"http://web-platform.test/\") fill 1 2% 3 4%" should set border-image-outset | ||
PASS e.style['border-image'] = "url(\"http://web-platform.test/\") fill 1 2% 3 4%" should set border-image-repeat | ||
PASS e.style['border-image'] = "url(\"http://web-platform.test/\") fill 1 2% 3 4%" should set border-image-slice | ||
PASS e.style['border-image'] = "url(\"http://web-platform.test/\") fill 1 2% 3 4%" should set border-image-source | ||
FAIL e.style['border-image'] = "url(\"http://web-platform.test/\") fill 1 2% 3 4%" should set border-image-width assert_equals: border-image-width should be canonical expected "1" but got "initial" | ||
PASS e.style['border-image'] = "url(\"http://web-platform.test/\") fill 1 2% 3 4%" should set border-image-width | ||
PASS e.style['border-image'] = "url(\"http://web-platform.test/\") fill 1 2% 3 4%" should not set unrelated longhands | ||
PASS e.style['border-image'] = "1 2% 3 4% / 5% / 6" should set border-image-outset | ||
FAIL e.style['border-image'] = "1 2% 3 4% / 5% / 6" should set border-image-repeat assert_equals: border-image-repeat should be canonical expected "stretch" but got "initial" | ||
PASS e.style['border-image'] = "1 2% 3 4% / 5% / 6" should set border-image-repeat | ||
PASS e.style['border-image'] = "1 2% 3 4% / 5% / 6" should set border-image-slice | ||
FAIL e.style['border-image'] = "1 2% 3 4% / 5% / 6" should set border-image-source assert_equals: border-image-source should be canonical expected "none" but got "initial" | ||
PASS e.style['border-image'] = "1 2% 3 4% / 5% / 6" should set border-image-source | ||
PASS e.style['border-image'] = "1 2% 3 4% / 5% / 6" should set border-image-width | ||
PASS e.style['border-image'] = "1 2% 3 4% / 5% / 6" should not set unrelated longhands | ||
|
Oops, something went wrong.