Bug 156573

Summary: CSS "repeating-linear-gradient" unstable/imprecise during resizing
Product: WebKit Reporter: Tobi Reif <tobi>
Component: CSSAssignee: Nobody <webkit-unassigned>
Status: RESOLVED INVALID    
Severity: Minor CC: simon.fraser, webkit-bug-importer
Priority: P2 Keywords: InRadar
Version: Safari 9   
Hardware: Mac   
OS: OS X 10.11   
Attachments:
Description Flags
Screenshot of https://codepen.io/anon/pen/VrmbRX in Safari 11.0.1 (13604.3.5) none

Description Tobi Reif 2016-04-14 03:27:46 PDT
Regarding this page:
http://codepen.io/TobiReif/pen/PNRNYy

In Safari 9, the pattern generated using CSS's "repeating-linear-gradient" is unstable/imprecise during resizing (when I move e.g. the right edge of the browser window).

(Probably best to try to reproduce it on a non-high-res screen.)

Related info:
In Chrome, the pattern is completely stable during resize.
Comment 1 Tobi Reif 2017-11-07 12:08:20 PST
Current URL: https://codepen.io/TobiReif/pen/BKrXMV .
Comment 2 Simon Fraser (smfr) 2017-11-07 14:17:18 PST
Can you simplify the test case to a single gradient with fewer stops?
Comment 3 Tobi Reif 2017-11-08 02:55:05 PST
Here you go:

https://codepen.io/anon/pen/VrmbRX

Safari renders sets of 3 stripes, and also sets of 4 stripes. Also please resize ➞ chaos.

Works as expected in eg Chrome and Firefox.

I hope this can get fixed 😀
Comment 4 Tobi Reif 2017-11-08 02:56:18 PST
Created attachment 326317 [details]
Screenshot of https://codepen.io/anon/pen/VrmbRX in Safari 11.0.1 (13604.3.5)
Comment 5 Simon Fraser (smfr) 2017-11-08 07:21:39 PST
Thanks for the reduction!
Comment 6 Radar WebKit Bug Importer 2017-11-08 07:21:59 PST
<rdar://problem/35413671>
Comment 7 Simon Fraser (smfr) 2017-11-08 11:14:46 PST
This is a bug in a framework below WebKit.
Comment 8 Tobi Reif 2017-11-08 12:06:28 PST
So it's necessary to file a bug report for that framework, right?
Comment 9 Tobi Reif 2017-11-28 04:21:11 PST
Current URL:
https://tobireif.com/demos/css_pattern/

Has the issue been reported to the developers of the underlying framework?
Comment 10 Alexey Proskuryakov 2017-11-28 08:49:36 PST
Yes, it's been reported (the rdar:// link is an Apple internal link to the report). Marking as INVALID, as this is not a WebKit issue.

Thank you for reporting it!
Comment 11 Tobi Reif 2017-11-28 08:59:28 PST
Thanks!

Ideally you'd leave it open until https://tobireif.com/demos/css_pattern/ works correctly in Safari. I'd hope to automatically get an email notification, which would allow me to then delete the text in https://tobireif.com/demos/css_pattern/ -> "show info" :

"Might not work correctly in Safari: [link:]bug report."
Comment 12 Tobi Reif 2018-03-30 02:21:28 PDT
Works perfectly now. Thanks!