Bug 244659
| Summary: | linear-gradient keywords values are not converted to their rgb() equivalents | ||
|---|---|---|---|
| Product: | WebKit | Reporter: | Karl Dubost <karlcow> |
| Component: | CSS | Assignee: | 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
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 | ||
|---|---|---|
| Add attachment proposed patch, testcase, etc. |
Radar WebKit Bug Importer
<rdar://problem/99420904>
Karl Dubost
*** This bug has been marked as a duplicate of bug 246927 ***
Karl Dubost
WebKit now returns "linear-gradient(-45deg, rgb(255, 0, 0), rgb(0, 0, 0))"