Bug 244659 - linear-gradient keywords values are not converted to their rgb() equivalents
Summary: linear-gradient keywords values are not converted to their rgb() equivalents
Status: RESOLVED DUPLICATE of bug 246927
Alias: None
Product: WebKit
Classification: Unclassified
Component: CSS (show other bugs)
Version: Safari Technology Preview
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Sam Weinig
URL: http://wpt.live/css/css-backgrounds/p...
Keywords: BrowserCompat, InRadar
Depends on:
Blocks:
 
Reported: 2022-08-31 22:21 PDT by Karl Dubost
Modified: 2023-01-30 17:04 PST (History)
3 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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))"