RESOLVED FIXED 244657
border-image-* returns the initial keyword instead of the initial value when setting border-image shorthand
https://bugs.webkit.org/show_bug.cgi?id=244657
Summary border-image-* returns the initial keyword instead of the initial value when ...
Karl Dubost
Reported 2022-08-31 21:57:35 PDT
Enter: data:text/html,<div%20style="border-image:%20initial"> Then document.getElementsByTagName('div')[0].style.borderImageOutset returns initial instead of 0 and so on the other properties. document.getElementsByTagName('div')[0].style.borderImageRepeat returns initial instead of stretch etc. see the tests in http://wpt.live/css/css-backgrounds/parsing/border-image-shorthand.sub.html and https://searchfox.org/wubkat/rev/482480f60b1f8c26dfe99b670a5fe677abb0fcd8/Source/WebCore/css/parser/CSSPropertyParser.cpp#5645-5677 https://searchfox.org/wubkat/search?q=symbol:_ZN7WebCore12CSSValuePool26createImplicitInitialValueEv&redirect=false
Attachments
Radar WebKit Bug Importer
Comment 1 2022-08-31 21:57:47 PDT
Darin Adler
Comment 2 2022-11-13 22:44:06 PST
All uses of createImplicitInitialValue have this problem.
Darin Adler
Comment 3 2022-11-15 08:44:39 PST
I started working on this and I am sort of falling down a rabbit hole, since there is so much here that can be improved.
Darin Adler
Comment 4 2022-11-18 14:33:11 PST
Darin Adler
Comment 5 2022-11-18 14:33:50 PST
Scaled back my ambition in this particular bug to just the two border-image shorthands, rather than all the other uses of createImplicitInitialValue, which likely each create a similar problem.
EWS
Comment 6 2022-11-29 08:12:38 PST
Committed 257119@main (c0c6ad146d33): <https://commits.webkit.org/257119@main> Reviewed commits have been landed. Closing PR #6652 and removing active labels.
Note You need to log in before you can comment on or make changes to this bug.