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

Description Karl Dubost 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.
Comment 1 Radar WebKit Bug Importer 2022-08-31 22:24:32 PDT
<rdar://problem/99420904>
Comment 2 Karl Dubost 2023-01-30 17:03:45 PST

*** This bug has been marked as a duplicate of bug 246927 ***
Comment 3 Karl Dubost 2023-01-30 17:04:19 PST
WebKit now returns "linear-gradient(-45deg, rgb(255, 0, 0), rgb(0, 0, 0))"