Bug 244659

Summary: linear-gradient keywords values are not converted to their rgb() equivalents
Product: WebKit Reporter: Karl Dubost <karlcow>
Component: CSSAssignee: Sam Weinig <sam>
Status: RESOLVED DUPLICATE    
Severity: Normal CC: m_dubet, sam, webkit-bug-importer
Priority: P2 Keywords: BrowserCompat, InRadar
Version: Safari Technology Preview   
Hardware: Unspecified   
OS: Unspecified   
URL: http://wpt.live/css/css-backgrounds/parsing/border-image-source-computed.sub.html

Karl Dubost
Reported 2022-08-31 22:21:50 PDT
Enter: data:text/html,<div%20style="border-image-source:%20linear-gradient(-45deg,%20red,%20currentcolor)"> Then window.getComputedStyle(document.getElementsByTagName('div')[0]).borderImageSource it returns red and currentcolor for Safari while it returns the rgb value for Firefox and Chrome.
Attachments
Radar WebKit Bug Importer
Comment 1 2022-08-31 22:24:32 PDT
Karl Dubost
Comment 2 2023-01-30 17:03:45 PST
*** This bug has been marked as a duplicate of bug 246927 ***
Karl Dubost
Comment 3 2023-01-30 17:04:19 PST
WebKit now returns "linear-gradient(-45deg, rgb(255, 0, 0), rgb(0, 0, 0))"
Note You need to log in before you can comment on or make changes to this bug.