Bug 62866 - Linear gradient issues with background-size
Summary: Linear gradient issues with background-size
Status: RESOLVED CONFIGURATION CHANGED
Alias: None
Product: WebKit
Classification: Unclassified
Component: CSS (show other bugs)
Version: 528+ (Nightly build)
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Nobody
URL: http://css-class.com/test/css/3/gradi...
Keywords:
Depends on:
Blocks:
 
Reported: 2011-06-17 08:20 PDT by Simon Fraser (smfr)
Modified: 2022-07-24 12:07 PDT (History)
7 users (show)

See Also:


Attachments
test case (1.71 KB, text/html)
2011-06-17 21:45 PDT, Philippe Wittenbergh
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Simon Fraser (smfr) 2011-06-17 08:20:53 PDT
Alan Gresley says
"WebKit nightly r89006 does something wrong with example 2, 3 and 4."
Comment 1 Philippe Wittenbergh 2011-06-17 19:31:53 PDT
This seems related to the background-size property. I played around with example 4 of the linked demo, which uses 'background-size: 70px 70px' for the bottom layer. I needed to increase the background-size to 108px 108px for the colors to display correctly on my machine (10.6.7, r89131).
Comment 2 Simon Fraser (smfr) 2011-06-17 20:56:24 PDT
Could you attach a simple testcase?
Comment 3 Philippe Wittenbergh 2011-06-17 21:45:47 PDT
Created attachment 97687 [details]
test case

(In reply to comment #2)
> Could you attach a simple testcase?

Sure, here you go:
The left box uses the bottom layer of example 4 in the demo.
The right box uses the smallest possible background-size that displays the colors correctly on my machine

I replaced 'transparent' with 'red' as a color value, just to make sure I saw the correct thing (and that the black seen in demo wasn't something related to the 'transparent' color in particular).

Expected result: both boxes show red/silver strip
Actual result: the left box shows black/silver strip
Comment 4 Simon Fraser (smfr) 2011-06-23 22:28:21 PDT
I think this is an underlying Core Graphics bug: <rdar://problem/8814089>
Comment 5 Ahmad Saleem 2022-07-24 04:55:28 PDT
I am unable to reproduce this bug in Safari 15.6 on macOS 12.5 and there is no 'black / silver strip' in left box and it matches with all other browsers.

I think it was fixed along the way and this can be marked as "RESOLVED CONFIGURATION CHANGED". Thanks!
Comment 6 Alexey Proskuryakov 2022-07-24 12:07:53 PDT
Yes, the CoreGraphics issue got fixed back in 2011.