Canvas 2D fails to render line/rect when one coordinate is very large/negative
Reported by
ja...@getcruise.com,
Oct 19 2017
|
||||
Issue descriptionUserAgent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_13_0) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/62.0.3202.62 Safari/537.36 Steps to reproduce the problem: 1. Visit https://jsfiddle.net/gxfcLpw6/2/ 2. Drag the slider to the right What is the expected behavior? The first segment of the path should always be visible. The onscreen portion of the rectangle should always be visible. What went wrong? When the slider is far enough to the right, the entire stroked path and rectangle disappear. Did this work before? N/A Does this work in other browsers? No The same issue occurs in Safari. I just filed: rdar://problem/35080907 The same issue occurs in Firefox on Ubuntu. Chrome version: 62.0.3202.62 Channel: stable OS Version: OS X 10.13.0 Flash Version: Shockwave Flash 27.0 r0 The most recent stable channel release of Chrome changed the behavior slightly. When the coordinate was very large and POSITIVE in the y-direction, the same issue occurred. It now occurs *only* when the coordinate is negative. (Try switching the - to a + in the definition of ypos.)
,
Oct 20 2017
Able to reproduce the issue on the reported chrome version 62.0.3202.62 and on the latest canary 64.0.3243.0 on Windows10, Mac 10.12.6 and on Ububtu 14.04 with the steps mentioned in comment#0. As the issue is seen from M50(50.0.2634.0) considering it as non-regression and marking as untriaged
,
Oct 30 2017
,
May 7 2018
The float numbers are processed and passed correctly from Blink to Skia. The root of the problem should be somewhere in SkPath::lineTo(). Adding bsalomon@ for triage. |
||||
►
Sign in to add a comment |
||||
Comment 1 by manoranj...@chromium.org
, Oct 19 2017